[Qt-interest] managing signals out of QT Designer
Giancarlo Amati
ilferraresebono at hotmail.it
Fri Mar 20 14:03:15 CET 2009
Cool...yeah ...that's what I've done... Ithougth it was allowed to "import" a kind of manager into QTdesigner and do it automatically from in there.
many thanks.
Giancarlo
Date: Fri, 20 Mar 2009 13:39:48 +0100
Subject: Re: [Qt-interest] managing signals out of QT Designer
From: b.sonnemann at gmail.com
To: ilferraresebono at hotmail.it
Well i dont know if i understood you right, but isnt it like this:
MANAGER* mgr;
QWidget* widget;
connect(widget, SIGNAL(foo()), mgr, SLOT(bar()));
Benjamin Sonnemann
2009/3/20 Giancarlo Amati <ilferraresebono at hotmail.it>
Good morning,
my questions is: I have build up my GUI in qtdesinger and what I wish is defining the event handlers. Now, I'm having a look to the signal/slot in qtdesigner but it explains how to connect widgets together while I want to redirect the signal of a button in the toolbar to my own class MANAGER.
So, once I produce my GUI.h file I want MANAGER to caputure the button pressed in the toolbar of the mainwindow. I derived MANAGER from the QObject and put the Q_OBJECT macro in it. I MOCed the correspondend .h file to produce the .moc file ..and now?
I work under visual studio 2008 and I customized the compilation of Manager.cpp.
Kind Regards.
Giancarlo
E' arrivato Messenger 2009. Provalo insieme ai nuovi servizi Windows Live.
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
_________________________________________________________________
25 GB di spazio gratis online: attiva SkyDrive!
http://clk.atdmt.com/GBL/go/136430529/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090320/e3a5fe3d/attachment.html
More information about the Qt-interest-old
mailing list