gmarull/qtmodern

center...

Closed this issue · 1 comments

    # from qtpy.QtWidgets import QDesktopWidget
    def center(self):
        qr = self.frameGeometry()
        cp = QDesktopWidget().availableGeometry().center()
        qr.moveCenter(cp)
        self.move(qr.topLeft()) 

Not an issue