Hi,
I've came across the strange problem while laying out widgets.
Imagine you have a dialog with QTabWidget and three pages.
Your open one page .ui file (let's say, in Qt Designer) and add one checkbox above all the widgets it already has then lay them out vertically. So the page looks like
|
Source code
|
1
2
3
4
|
[x] Your new checkbox
+--------------------------+
| Old page content |
+--------------------------+
|
The problem is, when dialog is created, tab contents are truncated - the dialog does not adjust its size for the new contents, although it looks just fine in Qt Designer. What could cause this behavior? I certainly expect layout manager to cope with things like dialog size automatically - but it doesn't do this job. I'm sure I'm missing something obvious. Thanks in advance
The second example: create QButtonGroup and add buttons layed in a grid to it. Chances are they would get truncated - QButtonGroup also doesn't adjust it's size (even if I ask it - it has ity's own opinion on what the correct size is).
P.S. I'm posting this question here because it doesnot seem to be Designer-specific.