Hi All,
I am learning QT. I have installed QT4 but the book I got is of QT3. Thinking that it should not be much of difference I started. But I got a problem in an example where book teaches to design shape changing dialog. Here when user are shown some options on the dialog. And when he clicks "More" button, he is shown more options in the dialog. So the dialog is extended. But I got following problem while designing this dialog.
When "More" button is not clicked extra options are not shown BUT "More "button is placed at the end of dialog and dialog is not resized. Means he is not shortened to give a feeling of small dialog. But when more button is clicked button goes up and other options are shown!
I got around this problem by manually editing ui_xxxx.h file. I added following line in this file's setupUi function.
ui.gridLayout->setSizeConstraint (QLayout:

etFixedSize);
Here gridLayout is the main topmost layout in my dialog. If I do this all is fine. Now my question is "Can I set sizeConstraint property of grid layout in QT Designer?"
Please help me, as I do not want to edit my ui_xxxx.h file manually each time!
___________________ << ___________________
|..............................| |..............................|
|..............................| |..............................|
|..............................| |..............................|
|..............................| |..............................|
|..............................| |..............~~~~~ ....|
|..............................| |.............|...MORE.|...|
|..............................| |.............~~~~~~....|
|..............................| ~~~~~~~~~~~~~~~
|..............................|
|..............................| (B) Correct Position of "More" Button. But this is not
|..............................| Coming!
|..............................|
|..............................|
|..............................|
|..............................|
|.............~~~~~~....|
|.............| MORE |.....|
|.............~~~~~~....|
~~~~~~~~~~~~~~~
(A) Incorrect position of "More" Button
Thanks,
Mystique