how to use QT designer to design the UI program like MFC:
palt form:
OS:LINUX AS4.0
QT:QT3.3-DEVEL
ui tools:QTdesigner
complier :shell
step:
1:open qt designer
2:like the MFC you can drag all of the widget on th toolbox
3:designe a UI like MFC then save it in a new folder
eg: save form1.ui in folder /root/myworkfile/form1
4:come to the form1.ui folde
shell: cd /root/myworkfile/form1
shell:uic -o form1.h form1.ui
shell:uic -o form1.cpp -impl form1.h form1.ui
5:then in form1 folde you can see two c++ file form1.h,foem1.cpp
6:make the c++ file into a qt project use the follow command
shell:qmake -project
7:get makefile use the follow command
shell:qmake
8:then you can comple you c++ program now
shell:make
over all usr the QT designer to design QT program finished ,but using qt designer there have a sideeffect
the QT designer using the geometry to location a widget ,so when th frequence of you monitor changed
or the size of the QT program window changed ,the program form size can not changed with it ;
it keep it old size and location.