PDA

View Full Version : Resizing Qwidget with app window



Shibby284
12th September 2015, 10:36
Hi,
I am using Qwidget to play video streams.
I am looking of a way to synchronize the Qwidget window with the app window, meaning when I minimize the app window or maximize it, the Qwidget's resolution will grow small or big with the app(same as happens with youtube windows for example).
I've searched and couldn't find a solution for this.
Thanks.

anda_skoa
12th September 2015, 11:04
Is the widget part of the window or a separate window on its own?
If the former, then you seem to be missing a layout somewhere between the widget and the window.

Cheers,
_

Shibby284
12th September 2015, 11:24
11367

These are the objects, where do I need to add a layout?

thanks.

anda_skoa
12th September 2015, 12:53
See in the top left corner, that "App", the QDialog class: icon for no layout

Cheers,
_

Shibby284
12th September 2015, 13:33
thanks for the reply.
I changed it and now I can't change the app window'sQdialog) size.
I want it to be to be able to change and just the Qwidget to adjust to it.
Thanks.

anda_skoa
12th September 2015, 13:37
There must be something wrong.

The only thing the layout should be doing is to adjust the size of the elements inside it when you make the window larger.
It should not prevent the window from being resized to a greater size by the user or the program code.

You should be able to freely resize between the minimum size required by the window's content and basically full screen.

Cheers,
_