QCapturableWindow Class

Used for getting the basic information of a capturable window. 更多...

头: #include <QCapturableWindow>
CMake: find_package(Qt6 REQUIRED COMPONENTS Multimedia)
target_link_libraries(mytarget PRIVATE Qt6::Multimedia)
qmake: QT += multimedia
Since: Qt 6.6
实例化: CapturableWindow

公共函数

QCapturableWindow ()
QCapturableWindow (const QCapturableWindow & other )
QCapturableWindow (QCapturableWindow && other )
~QCapturableWindow ()
QString description () const
bool isValid () const
void swap (QCapturableWindow & other )
QCapturableWindow & operator= (const QCapturableWindow & other )
QCapturableWindow & operator= (QCapturableWindow && other )
bool operator!= (const QCapturableWindow & lhs , const QCapturableWindow & rhs )
bool operator== (const QCapturableWindow & lhs , const QCapturableWindow & rhs )

详细描述

The class contains a set of window information, except the method QCapturableWindow::isValid which pulls the current state whenever it's called.

另请参阅 QWindowCapture .

成员函数文档编制

QCapturableWindow:: QCapturableWindow ()

Constructs a null capturable window information that doesn't refer to any window.

QCapturableWindow:: QCapturableWindow (const QCapturableWindow & other )

Construct a new window information using other QCapturableWindow.

[noexcept] QCapturableWindow:: QCapturableWindow ( QCapturableWindow && other )

Constructs a QCapturableWindow by moving from other .

[noexcept] QCapturableWindow:: ~QCapturableWindow ()

Destroys the window information.

QString QCapturableWindow:: description () const

Returns a description of the window. In most cases it represents the window title.

注意: Getter function for property description.

bool QCapturableWindow:: isValid () const

Identifies whether a window information is valid.

An invalid window information refers to non-existing window or doesn't refer to any one.

Returns true if the window is valid, and false if it is not.

注意: Getter function for property isValid.

[noexcept] void QCapturableWindow:: swap ( QCapturableWindow & other )

Swaps the current window information with other .

QCapturableWindow &QCapturableWindow:: operator= (const QCapturableWindow & other )

赋值 other window information to this QCapturableWindow .

[noexcept] QCapturableWindow &QCapturableWindow:: operator= ( QCapturableWindow && other )

移动 other 到此 QCapturableWindow .

相关非成员

[noexcept] bool operator!= (const QCapturableWindow & lhs , const QCapturableWindow & rhs )

返回 true if window information lhs and rhs refer to different windows, otherwise returns false .

[noexcept] bool operator== (const QCapturableWindow & lhs , const QCapturableWindow & rhs )

返回 true if window information lhs and rhs refer to the same window, otherwise returns false .