python - Get QListWidget event after using OpenpersistentEditor -
i using qlistwidget
show data. handling double click event self.listwidget.itemdoubleclicked.connect(self.listdoubleclick)
. in listdboubleclick
function, editing selected row self.listwidget.openpersistenteditor(edititem)
i.e. in definition of function listdboubleclick
. have overriden right click event self.listwidget.setcontextmenupolicy(qtcore.qt.customcontextmenu)
, self.listwidget.customcontextmenurequested.connect(self.listrightclicked)
.
as long right click on list, custom menu appears , works fine. once double click row, goes editor mode (as mentioned used openpersistenteditor
) , when right click, shows windows menu bar of copy, paste etc. problem how customized menu when right click on row double clicked.
what widget need use capture right click event? used qlistwidget
event custom menu.
Comments
Post a Comment