Are you sure you need that "delay" method?
The single shot time will already delay invocation of setupGUI to after the event loop has started processing events.
Cheers,
_
Are you sure you need that "delay" method?
The single shot time will already delay invocation of setupGUI to after the event loop has started processing events.
Cheers,
_
Yeah I understand although it works with it and does not work without it, haha![]()
Hmm.
Have you tried connecting to the QScreen's availableGeometryChanged() signal as the trigger?
If you need those values that might be a good idea anyway in case the geometry changes again.
Cheers,
_
It seems likely that the application is not "connected" to a screen until the window is shown. Try looking at the values in the showEvent() handler.
Why do you need the screen geometry before your window is shown?
Bookmarks