Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

window placement #35

Closed
prjemian opened this issue Jan 25, 2016 · 2 comments
Closed

window placement #35

prjemian opened this issue Jan 25, 2016 · 2 comments
Assignees
Labels
Milestone

Comments

@prjemian
Copy link
Owner

current screen geometry should be checked to ensure that no windows are placed off screen

This can happen on a laptop that uses a docking station that provides multiple monitors. The position of subwindows moved by the user to other screens will be remembered by the application. When the laptop is undocked, the windows should be moved back to the viewable display.

@prjemian prjemian added the bug label Jan 25, 2016
@prjemian prjemian self-assigned this Jan 25, 2016
@prjemian prjemian added this to the 2016-2 review milestone Jan 25, 2016
@prjemian
Copy link
Owner Author

prjemian commented Feb 2, 2016

settings.restoreWindowGeometry()

        # TODO: what if (x,y) is off-screen?  Check here if point is off-screen.  How?
        point = QtCore.QPoint(int(x), int(y))
        # TODO: only do this if point is on-screen
        # see: http://doc.qt.io/qt-4.8/qdesktopwidget.html#screen-geometry
        # see: http://doc.qt.io/qt-4.8/application-windows.html#window-geometry
        # window.move(point)

@prjemian
Copy link
Owner Author

prjemian commented Feb 2, 2016

The support for different screen geometries comes from QtGui.QDesktopWidget()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant