Hello Karol,
Are you using layouts? Probably not and you should as this would probably fix your problem. And be sure not to use Qt4.0 as it contains many bugs in Designer code.
Hello Karol,
Are you using layouts? Probably not and you should as this would probably fix your problem. And be sure not to use Qt4.0 as it contains many bugs in Designer code.
Thanks for a quick reply!
No, I don't use layouts as I need to have those widgets scattered in a more or less random way and I can't really accomplish that with layouts (at least not unless I fill them with tons of invisible widgets).
I use Qt 4.1.2 and plan to keep doing so... If that's an unavoidable Designer bug then I'll have to live with it. Thanks to programmers of svn I can revert the breakage with little trouble...
Kind regards,
Karol "grzywacz" Nowak
Honestly I don't experience such problems with my installation. Is this a random effect or did you notice some regularities on when and how this happens? Did you try looking at the ui file with a text editor? Maybe svn (or something else) corrupted it?
This doesn't happen every time, that's why it's so annoying. And yes, I did look at the .ui file, here's what changed between the correct and broken version:
Underlaying QFrame's size has changed:
- <width>800</width>
- <height>600</height>
+ <width>512</width>
+ <height>307</height>
And the same thing has happened to all three buttons on top of it:
- <width>150</width>
- <height>128</height>
+ <width>512</width>
+ <height>307</height>
- <width>150</width>
- <height>128</height>
+ <width>512</width>
+ <height>307</height>
- <width>150</width>
- <height>128</height>
+ <width>512</width>
+ <height>307</height>
Looks as if the change has been somehow propagated to other widgets (not that I recall resizing the QFrame itself, that wouldn't look ok). I've also seen a similliar problem with QTabWidget.
edit: yes, I've corrected the .ui file by hand and from then on everything seems to work fine.
Kind regards,
Karol "grzywacz" Nowak
I'd still suggest using layouts.
Bookmarks