QWaylandOutputMode Class

The QWaylandOutputMode class holds the resolution and refresh rate of an output. 更多...

头: #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 holds the resolution and refresh rate of an output. Resolution is expressed in pixels and refresh rate is measured in mHz.

另请参阅 QWaylandOutput .

成员函数文档编制

bool QWaylandOutputMode:: isValid () const

Returns whether this mode contains a valid resolution and refresh rate.

int QWaylandOutputMode:: refreshRate () const

Returns the refresh rate in mHz.

QSize QWaylandOutputMode:: size () const

Returns the resolution in pixels.

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

返回 true if this mode is not equal to other ,否则返回 false .

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

返回 true if this mode is equal to other ,否则返回 false .