PDA

View Full Version : Facing problem with qt-4.1 designer



jnana
22nd February 2006, 06:15
Hi All,

I was comfortable with qt-3. Suddenly switched over to qt-4.1. With help of designer manual I am able to create my design. Now I am not able to create main.cpp file and also not able to add slots and signals to my created class. In qt-3 there is Object Explorer through which we can add signals and slots. Now I am not able to find all these facilities in qt-4.1. Requires ur helping hand to solve all these problems.

Thanks
Jnana

becond
22nd February 2006, 07:28
In Qt 4.1 Designer, go under Tools menu. There is an Object Inspector, and a Signal/Slots Editor that allow you to connect objects.

wysota
22nd February 2006, 08:34
Now I am not able to create main.cpp file and also not able to add slots and signals to my created class. In qt-3 there is Object Explorer through which we can add signals and slots. Now I am not able to find all these facilities in qt-4.1.

Qt Designer 4 doesn't have them. The approach changed with Qt4. Designer no longer allows you to manage and edit code or create custom signals or slots. More info about it (http://doc.trolltech.com/qq/qq14-designer.html#makingabetterdesignerforqt4).

jnana
22nd February 2006, 08:45
Hi,

Thanks for ur reply. I shall try these methods.

Thanks
Jnana

Matt Smith
8th March 2006, 19:16
I was comfortable with qt-3. Suddenly switched over to qt-4.1. With help of designer manual I am able to create my design. Now I am not able to create main.cpp file and also not able to add slots and signals to my created class. In qt-3 there is Object Explorer through which we can add signals and slots. Now I am not able to find all these facilities in qt-4.1. Requires ur helping hand to solve all these problems.

The method for using Qt Designer forms changed in Qt 4; there are now three methods, which are described here (http://doc.trolltech.com/4.1/designer-using-a-component.html).

You can also use QtUiTools to load the .ui file dynamically at run-time, similarly to Qt3 Widget Factory: see here (http://doc.trolltech.com/4.1/qtuitools.html).