Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.0.3, 6.1.0 Beta3
Description
Dear community,
I was playing today with the dprgadget from Qt sources, and I added a call to showFullscreen on the widget. I my opinion, if scale change even the window is already open, it should react and adapt to stay in full screen like almost every maximized window.
int main(int argc, char **argv){ QApplication app(argc, argv); DprGadget dprGadget; dprGadget.showFullScreen(); // We expect this size to be preserved across screen and DPI changes return app.exec(); }
EDIT: After investigation, replacing showFullscreen by this did the trick but it's kind of manual way
QObject::connect(windowHandle()->screen(), &QScreen::availableGeometryChanged, [=](){ setGeometry(windowHandle()->screen()->geometry()); });