Reputation: 386
I have a QT application, in that, Mainwindow contains two Opengl widgets (i.e. two Opengl display windows in main window). One Opengl window is for editing and other one for showing result. I have attached the image of application. I want to re-size each Opengl window independently i.e. I don't want to change the size of Mainwindow when I change any of openGl window. Please tell me how to do this?
Upvotes: 0
Views: 407
Reputation: 2829
I think in order to be successful you'll have re-evaluate your layout all together from the top and think about how the user is going to interact with the different areas.
While you do that you should look at QDockWidget and QSplitter to allow your user to move and resize the areas you want without resizing your main window. It will also allow users to move areas around if they want in it a different part of your application.
Then use QLayout
objects within each area to get the desired layout of each dockable/split area.
Upvotes: 1