Constructors in Qt Designer
Hi, I have a dialog designed in Qt Designer, but I can't seem to figure out how to add my own constructors (there is extra info that needs to be passed in the constructor). I tried using the Object Explorer/members/functions facility, but it insists on declaring my constructors as 'void', which of course is not allowed :( Can anyone give me any pointers about where to go from here? Thanks Alan Lenton -- http://www.ibgames.net/alan Registered Linux user #6822 http://counter.li.org Winding Down - Weekly Tech Newsletter - subscribe at http://www.ibgames.net/alan/winding/mailing.html
alan@ibgames.com wrote:
Hi,
I have a dialog designed in Qt Designer, but I can't seem to figure out how to add my own constructors (there is extra info that needs to be passed in the constructor).
I tried using the Object Explorer/members/functions facility, but it insists on declaring my constructors as 'void', which of course is not allowed :(
Can anyone give me any pointers about where to go from here?
Thanks
Alan Lenton Every Dailog inherits from QDialog (qdialog.h). The constructor: explicit QDialog ( QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags f = 0 )
Found this by using the QT Assistend.... Hope this helps.... Stefan.
participants (2)
-
alan@ibgames.com
-
S. Bulterman