Qt设置窗口居中显示 Author: 蒋胜达 Date: 七月 12, 2023 14:24 Category: 开发笔记 1234567//移动窗体到屏幕中央QRect rect = m_pWidget->frameGeometry();QScreen* screen = QGuiApplication::primaryScreen();QPoint point = screen->availableGeometry.center();rect.moveCenter(point);m_pWidget->move(rect.topLeft());m_pWidget->show(); Tag(s): # Qt back · home Qt防连点 Qt限制软件某日期后不能使用