
Originally Posted by
pyqt123
Thanks spirit..
- I've reimplemented the closeEvent.. But it's not connecting.. Might be some problem with signal and slot connection(Plz. go through the code once again). Can you tell me what is the problem with the program???
closeEvent is not a slot. if you make as Qt Assistant says then reimplementation of closeEvent should work.

Originally Posted by
pyqt123
- For reimplementing the the minimize event should i use showMinimized() like below.. Will it work??
self.connect(clos,QtCore.SIGNAL('triggered()'),self.TabWidget,QtCore.SLOT('showMinimized()'))
self.connect(clos,QtCore.SIGNAL('triggered()'),self.TabWidget,QtCore.SLOT('showMinimized()'))
To copy to clipboard, switch view to plain text mode
I'm new to pyqt.Thanks.
you can't minimize child widget, you should minimize parent widget only, i.e.
self.connect(clos,QtCore.SIGNAL('triggered()'),self,QtCore.SLOT('showMinimized()'))
self.connect(clos,QtCore.SIGNAL('triggered()'),self,QtCore.SLOT('showMinimized()'))
To copy to clipboard, switch view to plain text mode
Bookmarks