hi,
I have a QglWidget which I would like to be 100% of the size of his parent QMainWindow.
When I create the QglWidget he is the right size (parent auto-created), but now I tried to maximize it with :
but it doesn't seem to work
Any idea ?
Printable View
hi,
I have a QglWidget which I would like to be 100% of the size of his parent QMainWindow.
When I create the QglWidget he is the right size (parent auto-created), but now I tried to maximize it with :
but it doesn't seem to work
Any idea ?
What if you stick it in a layout and then add a stretch factor greater than 1?
Hi,
1. Set layout for the window and add the widget to the layout with enabled max stretch.
2. When maximizing the main window set widget geometry to fill the whole window.(brutal force)
3. Make sure you do not have any "bar" objects (toolbar,etc) which will not allow the widget to make the whole available space.
Kacper
Try setting the margins ans spacing in layout to zero.
Else if you want to show some widget maximised, you can use QWidget::showMaximized()
Similar question to this one:
I saw in a few web pages, a flash movie that contains a button that when you press it, the movie goes out of the original frame, and fits the whole window (not full screen!)
I would like to implement this in a QWidget:
I want to yank a QWidget from a layout, and then force it to be take the whole content of the window. Has anyone done such thing and can give me some hints about how can I do this?
hello guys,
it was a layout problem indeed, but I resolved it just by using setCentralWidget instead of addWidget