def location_on_the_screen(self):
fg = self.frameGeometry()
sbrp = QDesktopWidget().availableGeometry().bottomRight()
fg.moveBottomRight(sbrp)
self.move(fg.topLeft())
我无法将窗口放在屏幕的右下角。 frameGeometry() 无法正常工作。请帮帮我,我该怎么办?
原文由 Newbie 发布,翻译遵循 CC BY-SA 4.0 许可协议
这是适用于 Windows 的可能解决方案: