labscript-suite / blacs

𝗯𝗹𝗮𝗰𝘀 supervises the execution of experiments controlled by the 𝘭𝘢𝘣𝘴𝘤𝘳𝘪𝘱𝘵 𝘴𝘶𝘪𝘵𝘦. It manages experiment queuing and hardware-timed execution, and provides manual control over devices between shots.
http://labscriptsuite.org
Other
4 stars 47 forks source link

Improve restoration of windows geometry on launch #56

Open philipstarkey opened 4 years ago

philipstarkey commented 4 years ago

We currently try and restore the window geometry on launch, but this doesn't always work correctly and the window ends up hidden off screen. The solutions to this are then to:

We can probably restore the geometry in a way that doesn't trigger this issue, perhaps using QWidget.restoreGeometry() (see https://doc.qt.io/qt-5/restoring-geometry.html). However, I have a feeling I've tried this in the past and the downside was that it lost the window position when saving geometry of a maximised window. But maybe those issues have been resolved in Qt5 so we should investigate!