[Qt-creator] Resizing a window
Chris Bruner
cbruner at quadro.net
Wed Feb 10 10:07:14 CET 2010
Paul Hartman wrote:
> On Tue, Feb 9, 2010 at 11:45 AM, Chris Bruner <cbruner at quadro.net> wrote:
>
>> I'm trying to do something that I'm sure is simple but somehow escapes
>> me. I've got a QGraphicsView inside a QFrame inside a QGridLayout inside
>> a QVBoxLayout inside a QWidget inside a QMainWindow.
>> I want to resize the window and have the QGraphicsView follow along.
>> Instead what I see is the window resizeing and the view staying the same
>> and getting covered up.
>>
>
> Look at the chapter "Layout Management" in the Qt documentation, maybe
> it will give you some hints.
>
Thanks for that, it has made some things a bit clearer. It looks to me
like the widgets will resize themselves when the layout changes size,
but I still can't get the layout/widget to change size as the window
changes size. All that happens is the window cuts off the widget. What
am I missing?
More information about the Qt-creator-old
mailing list