Qt-interest Archive, October 2007
Layouting/Resizing Problems with QMainWindow in Qt-4
Message 1 in thread
Hello !
I just have a little question:
If I design a QMainWindow in Designer and add some widget, it does not
resize, if use the sizegrip to resize the window. (In the Preview of
designer and in my application).
I tried different layout like QHBoxLayout and changed the properties to
Expanding or preferred, but it does not work.
What must I do, to get this behavior?
Thanks a lot for helping !!
Best regards,
Heiko Steindl
--
[ signature omitted ]
Message 2 in thread
On 03.10.07 12:02:25, Heiko Steindl wrote:
> Hello !
>
> I just have a little question:
>
> If I design a QMainWindow in Designer and add some widget, it does not
> resize, if use the sizegrip to resize the window. (In the Preview of
> designer and in my application).
>
> I tried different layout like QHBoxLayout and changed the properties to
> Expanding or preferred, but it does not work.
>
> What must I do, to get this behavior?
Put the content widget into a layout
Andreas
--
[ signature omitted ]
Message 3 in thread
thanks for the quick respone !
do you mean the central_widget ?
Heiko
Andreas Pakulat schrieb:
> On 03.10.07 12:02:25, Heiko Steindl wrote:
>
>> Hello !
>>
>> I just have a little question:
>>
>> If I design a QMainWindow in Designer and add some widget, it does not
>> resize, if use the sizegrip to resize the window. (In the Preview of
>> designer and in my application).
>>
>> I tried different layout like QHBoxLayout and changed the properties to
>> Expanding or preferred, but it does not work.
>>
>> What must I do, to get this behavior?
>>
>
> Put the content widget into a layout
>
> Andreas
>
>
Message 4 in thread
On 03.10.07 13:05:07, Heiko Steindl wrote:
> thanks for the quick respone !
>
> do you mean the central_widget ?
click the mainwindow outside of a menu or widget and hit one of the
layout buttons that works.
Andreas
--
[ signature omitted ]
Message 5 in thread
Hello Andreas !
THANK YOU VERY VERY MUCH !!! ;-)
this works perfectly !
You saved my day ! ;-)
Heiko
Andreas Pakulat schrieb:
> On 03.10.07 13:05:07, Heiko Steindl wrote:
>
>> thanks for the quick respone !
>>
>> do you mean the central_widget ?
>>
>
> click the mainwindow outside of a menu or widget and hit one of the
> layout buttons that works.
>
> Andreas
>
>
Message 6 in thread
On 03.10.07 13:54:34, Heiko Steindl wrote:
> Hello Andreas !
>
> THANK YOU VERY VERY MUCH !!! ;-)
>
> this works perfectly !
>
> You saved my day ! ;-)
Always a pleasure :)
Andreas
--
[ signature omitted ]
Message 7 in thread
I tried the central_widget but it also doesn't resize.
The MainWindow only has a few Pushbuttons and a QStackedWidget.
I also tried to but the Pushbuttons and the QStackWidget in a Layout but
the resizing isn't done. ( I can resize the Window but the contents are
not resized, to fit the space of the MainWindow).
Thanks a lot for helping me !
Heiko
Heiko Steindl schrieb:
> thanks for the quick respone !
>
> do you mean the central_widget ?
>
> Heiko
>
> Andreas Pakulat schrieb:
>> On 03.10.07 12:02:25, Heiko Steindl wrote:
>>
>>> Hello !
>>>
>>> I just have a little question:
>>>
>>> If I design a QMainWindow in Designer and add some widget, it does not
>>> resize, if use the sizegrip to resize the window. (In the Preview of
>>> designer and in my application).
>>>
>>> I tried different layout like QHBoxLayout and changed the properties to
>>> Expanding or preferred, but it does not work.
>>>
>>> What must I do, to get this behavior?
>>>
>>
>> Put the content widget into a layout
>>
>> Andreas
>>
>>
>