Re: PyQT: QDialog and QMainWindow interacting with each other



Fabian Steiner schrieb:
MyDialog is closed by calling MyDialog.accept(). What can I do so that self.showListViewItems() is called after MyDialog has been closed?

Thank you for any input!


Hi Fabian,

override the accept() method and call self.showListViewItems() there.
But remember to call QDialog.accept() at the end.

def accept( self ):
self.showListViewItems()
QDialog.accept( self )


Kai Teuber
.