[Qt-interest] Resizing a window
Thomas Dähling
t.daehling at googlemail.com
Wed Feb 10 10:43:25 CET 2010
Have you tried setting the central widget to your QWidget that
contains everything? That's what I struggled with at the beginning as
well.
2010/2/10 Chris Bruner <cbruner at quadro.net>:
> 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 resizing and the view staying the same
> and getting covered up.
>
> 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?
>
> TIA
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list