QWaylandOutputMode Class

QWaylandOutputMode 类保存输出的分辨率和刷新率。更多

头文件: #include <QWaylandOutputMode>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor

公共函数

bool isValid() const
int refreshRate() const
QSize size() const
bool operator!=(const QWaylandOutputMode &other) const
bool operator==(const QWaylandOutputMode &other) const

详细说明

QWaylandOutputMode 保存输出的分辨率和刷新率。分辨率以像素为单位,刷新率以 mHz 为单位。

另请参阅 QWaylandOutput

成员函数文档

bool QWaylandOutputMode::isValid() const

返回该模式是否包含有效的分辨率和刷新率。

int QWaylandOutputMode::refreshRate() const

以 mHz 为单位返回刷新率。

QSize QWaylandOutputMode::size() const

以像素为单位返回分辨率。

bool QWaylandOutputMode::operator!=(const QWaylandOutputMode &other) const

如果该模式不等于other ,则返回true ,否则返回false

bool QWaylandOutputMode::operator==(const QWaylandOutputMode &other) const

如果该模式等于other ,则返回true ,否则返回false

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.