PDA

View Full Version : problem about showing my Qt application in smaller screen



Alex22
6th August 2016, 18:24
Hi,
While running ".exe" of my Qt application in deference desktops (whit deference resolution), when resolution of a desktop is low, mainWindow is shown bigger than size of that desktop.
This is because of my window contents are too large for the smaller screen. So, there is a "simple view mode" on the mainWindow that some contents be hidden in this mode. this mode actives by pushing on a pushbutton. After pushing this button, my window contents are suitable for the smaller screen but for fitting to the desktop, I must manually Restore Down the my window and then Maximize.

my question is:
how can my window Restore Down and then Maximize automatically?

anda_skoa
6th August 2016, 22:45
Usually this works


window->resize(0, 0);


Cheers,
_