PySide: Drag and drop files into QListWidget

后端 未结 3 1278
时光说笑
时光说笑 2021-01-06 15:22

This is my first entry here so apologies for any newbie mistakes. I\'ve searched both here and Google with no luck before posting.

I want to be able to add images to

3条回答
  •  礼貌的吻别
    2021-01-06 16:00

    For me this worked fine (tested on PySide2 & PyQt5). This is not a drop signal, but a signal when the rows of a QListWidget have been moved. In my case this is always happening after dropping.

    self.window.my_list_widget.model().rowsMoved.connect(self.my_method)
    

提交回复
热议问题