Active Topics

 


Reply
Thread Tools
Posts: 270 | Thanked: 239 times | Joined on Dec 2009 @ Czech Republic
#1
Hi I need to do some action after click on quit button(cross in right top corner) like this:
Code:
connect(quit,SIGNAL(clicked()),this,SLOT(anyAction());
I use QT. THX for your replies.
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#2
Originally Posted by Figa View Post
Hi I need to do some action after click on quit button(cross in right top corner) like this:
Code:
connect(quit,SIGNAL(clicked()),this,SLOT(anyAction());
I use QT. THX for your replies.
a simple search would give you this
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 
Posts: 270 | Thanked: 239 times | Joined on Dec 2009 @ Czech Republic
#3
THX but i tryed this before post this thread and it didnt work.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#4
Code:
self.connect(quit, QtCore.SIGNAL('clicked()'),
            QtGui.qApp, self.doQuit())

def doQuit(self):
     *do stuff*
doesn't work?
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:40.