gboelter
4th December 2009, 04:32
Hello!
I have created a QMainWidget using Qt's designer, wich has a centralWidget. The Layout of the centralWidget is set to grid-layout and resizing in the designer prview is doing well.
Then I have created a second Widget using the designer, which contains a frame and some other widgets. Layout is set to grid and resizing is doing well too in the designer preview.
And even resizing the MainWindow in my application is doing well too.
My problem now is, that my second widget - the one I like to show inside the centralWidget - don't resize if I resize my Mainwindow.
Home::Home ( MainWindow *pMainWindow )
: myMainWindow( pMainWindow )
{
frameHome = new QFrame( myMainWindow->centralwidget );
setupUi( frameHome );
}
What's wrong with that, why I cant resize the widget inside centralWidget?
I'm sure, it's a very simple thing but I can't figure it out.
May be it's to hot today ... ;)
Thanks in advance.
Guenther
Davao City, Philippines, Planet Earth, 35.3 °C
I have created a QMainWidget using Qt's designer, wich has a centralWidget. The Layout of the centralWidget is set to grid-layout and resizing in the designer prview is doing well.
Then I have created a second Widget using the designer, which contains a frame and some other widgets. Layout is set to grid and resizing is doing well too in the designer preview.
And even resizing the MainWindow in my application is doing well too.
My problem now is, that my second widget - the one I like to show inside the centralWidget - don't resize if I resize my Mainwindow.
Home::Home ( MainWindow *pMainWindow )
: myMainWindow( pMainWindow )
{
frameHome = new QFrame( myMainWindow->centralwidget );
setupUi( frameHome );
}
What's wrong with that, why I cant resize the widget inside centralWidget?
I'm sure, it's a very simple thing but I can't figure it out.
May be it's to hot today ... ;)
Thanks in advance.
Guenther
Davao City, Philippines, Planet Earth, 35.3 °C