I was not able to get QT4 book so I started learning from QT3 book which is freely available. Now when I started reading chapter 2, it talks of self changing dialogs. But here I had to spent a lot of time! The book which is based on QT3 tells that make “resizeMode” property from “Auto” to “Fixed”. But I did not find this property in QT4 at all! And I tried all the permutations and combinations of size of all the widgets.
But then I looked in one dialog example. Here I saw that top level grid layout should call setSizeConstraint with argument as QLayout::SetFixedSize. And when I did this code change manually in ui_sortForm.h it worked liked magic! [Note ui_sortForm.h is generated by QT Designer from sortForm.ui file]
One thing I don’t understand now is how come you cant change top most grid layout’s property in QT Designer? I may find out more about this when I learn more about QT.
