View Full Version : How to get *.exe from *.ui generated by QtDesigner?

Shuchi Agrawal
29th December 2006, 05:53
i generated form and saved it as a *.ui file. now can any1 plz tel me further steps to get a *.exe file fm this on windows xp?
i m using Qt 4 and visual c++ 6.0.

29th December 2006, 07:50
In order to compile.

You first need to create a Qt pro file And then
Add the ui file in the FORMS section of the profile

Make a main.cpp add it to the sources section of the And then invoke qmake and make

this video tutorial will help you

16th January 2007, 05:14
Hi sunil
Is there any video , about 'How to use qt4 in Linux ' ?

16th January 2007, 05:46
The closest I could get is the video by wysota. http://wysota.eu.org/tutorials/tut_designer1.avi

IIRC, It does not show the compilation.

11th February 2007, 06:21
Good work,for posting this problem i also have the same problem.
Can anyon show example to accomplish this.Why not write tutorial for it?

11th February 2007, 08:52
The procedure has been explained in the documentation of the Designer: Using a Component in Your Application (http://doc.trolltech.com/4.2/designer-using-a-component.html).
(Pay attention to the single (http://doc.trolltech.com/4.2/designer-using-a-component.html#the-single-inheritance-approach) and/or the multiple inheritance approach (http://doc.trolltech.com/4.2/designer-using-a-component.html#the-multiple-inheritance-approach). The direct approach (http://doc.trolltech.com/4.2/designer-using-a-component.html) is not recommended.)

You could also explore the demos and examples shipped with Qt. There are several applications that use either single or multiple inheritance approach.

11th February 2007, 18:15
Can anyon show example to accomplish this.Why not write tutorial for it?
There is an old saying that goes, "When all else fails, read the documentation." So let me inform you about Qt's excellent documentation. You should have no problem after consulting them.

There is an very good book about using Qt called "C++ GUI Programming with Qt 4". I highly recommend it. It even includes an appendix on building and installing Qt 4.

Qt itself comes with very good documentation. This can be accessed online at http://doc.trolltech.com/4.2/index.html, or from Qt's included utility, Assistant.