QRect screenRect = QGuiApplication::primaryScreen()->geometry(); double devicePixelRatio = QGuiApplication::primaryScreen()->devicePixelRatio(); int screenW = screenRect.width(); int screenH = screenRect.height(); 相关文章: 2021-08-12 2021-09-09 2021-07-24 2022-01-08 2021-07-17 2022-01-08 2022-12-23