Hi,
I created a Dialog using Qt 3.3.7, now I want to add buttons and labels.
When I tried to add like this..
Code:
It overwrites the properties.
What is the correct way to do this?
Thanks,
*npc*
Printable View
Hi,
I created a Dialog using Qt 3.3.7, now I want to add buttons and labels.
When I tried to add like this..
Code:
It overwrites the properties.
What is the correct way to do this?
Thanks,
*npc*
Why don't you use Designer to create your dialog? Especially if you have a lot of widgets to add. Also, by using Designer it is easier to design your layouts.
If you don't want/know to use Designer, you must subclass QDialog and add your widgets in the implementation of this subclass. You can find many examples on how to do this in the Qt examples.
Regards
You should use a layout if you want to add widgets to a dialog. Otherwise all widgets will be positions in the top left corner of the parent widget with an arbitrary size.