PDA

View Full Version : Qt4 layout !



Encom
19th June 2006, 23:56
Hi

I used Qt3 to make a software. Now i have to convert it in Qt4 without Qt3 support.
There is a big problem with QVBox and QHBox... These widgets were very easy to use, but now I have to add (F...ing) Layouts . What a hell ! :mad:

Does it exist a way to "autoAdd" Widget in layout ? Otherwise Qt will be worse than Java Swing to programm GUI !! :crying:

jacek
20th June 2006, 00:10
Does it exist a way to "autoAdd" Widget in layout ?
Unfortunately not:
Automatically adding widgets is deprecated. Use addWidget() or addLayout() instead.(unless you want to use Qt3Support module).


Otherwise Qt will be worse than Java Swing to programm GUI !! :crying:
Why don't you use Qt Designer?

Encom
20th June 2006, 00:12
I dont like the generated code.
Is it possible to generate code in .h AND in .cpp ?

jacek
20th June 2006, 00:20
I dont like the generated code.
Yes it's awful, but Qt Designer might greatly speed up your work.


Is it possible to generate code in .h AND in .cpp ?
Unfortunately uic outputs only a header file.

Encom
20th June 2006, 00:34
Hhhhhhh :mad:
Well is Qt as good as i said before ?:(

jacek
20th June 2006, 00:52
Well is Qt as good as i said before ?:(
Even better.

Code generators might not produce the most beautiful code in the world, but if you know what they are doing, they will save you time and protect you from errors.

Encom
20th June 2006, 01:21
Ok :eek:
I wrote my own QVBox and QHBox, it works like Qt3 now ;)
If you want the code, just ask it.:D