PDA

View Full Version : Add nonGUI classes to Qt Designer UI's



pbro
14th May 2007, 18:52
Hello,

I would like to add a nonGUI class to an application developed with Qt Designer. I can not add it to 'form1.h', generated by Qt Designer, and I don't think that I should add it to the XML file. If I set up a custom widget under , it asks me for a graphical representation of the class.

What is the recommended way to do this?

Thanks...

marcel
14th May 2007, 19:07
I don't know what you mean :).
I mean, how did you exactly developed an entire app with Designer alone? How big is this application?

I'm sure you have other classes, like a subclass of the UI class generated by designer.



and I don't think that I should add it to the XML file

No, don't even try that.

wysota
14th May 2007, 20:09
What is the recommended way to do this?

http://doc.trolltech.com/4.2/designer-using-a-component.html

jacek
14th May 2007, 21:18
http://doc.trolltech.com/4.2/designer-using-a-component.html
Rather: http://doc.trolltech.com/3.3/designer-manual-6.html

@pbro:
Note that Qt Designer is not an IDE, only a layout editor.

wysota
15th May 2007, 00:13
Rather: http://doc.trolltech.com/3.3/designer-manual-6.html

Oh, right... sorry :)