QCapturableWindow Class
キャプチャ可能なウィンドウの基本情報を取得するために使用します。詳細...
| ヘッダー | #include <QCapturableWindow> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Multimedia)target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
| qmake: | QT += multimedia |
| 以来: | Qt 6.6 |
| QML では | CapturableWindow |
プロパティ
- description : const QString
- isValid : const bool
パブリック機能
| QCapturableWindow() | |
(since 6.10) | QCapturableWindow(QWindow *window) |
| QCapturableWindow(const QCapturableWindow &other) | |
| QCapturableWindow(QCapturableWindow &&other) | |
| ~QCapturableWindow() | |
| QString | description() const |
| bool | isValid() const |
| void | swap(QCapturableWindow &other) |
| QCapturableWindow & | operator=(QCapturableWindow &&other) |
| QCapturableWindow & | operator=(const QCapturableWindow &other) |
関連非会員
| bool | operator!=(const QCapturableWindow &lhs, const QCapturableWindow &rhs) |
| bool | operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs) |
詳細説明
このクラスは、QCapturableWindow::isValid メソッドを除くウィンドウ情報のセットを含んでいます。
QWindowCaptureも参照 。
プロパティの説明
[read-only] description : const QString
このプロパティはウィンドウの説明を保持する。
ほとんどの場合、ウィンドウのタイトルを表します。
アクセス関数:
| QString | description() const |
[read-only] isValid : const bool
このプロパティは、ウィンドウに関する情報が有効であるかどうかを保持する。
無効なウィンドウ情報は、存在しないウィンドウを参照するか、または何も参照しない。
アクセス関数
| bool | isValid() const |
メンバ関数ドキュメント
QCapturableWindow::QCapturableWindow()
どのウィンドウも参照しない、NULLのキャプチャ可能なウィンドウ情報を構築する。
[explicit invokable, since 6.10] QCapturableWindow::QCapturableWindow(QWindow *window)
与えられたウィンドウにマップする QCapturableWindow インスタンスを構築します。
QCapturableWindow の説明は、指定されたQWindow のタイトルと一致します。
注意:指定されたQWindow がまだ表示されていない場合、コンストラクタは無効なインスタンスを作成する可能性があります。したがって、Qt アプリケーションが実行されていない場合、無効なQCapturableWindow インスタンスが期待されます。インスタンスの有効性は、時間の経過とともにisValid に問い合わせることで追跡できます。
入力としてnullptrが与えられた場合、このメソッドは決して有効にならないインスタンスを返します。
トップレベルでないウィンドウが与えられた場合、このメソッドは決して有効にならないインスタンスを返します。
注意: この関数はメタオブジェクトシステムやQMLから呼び出すことができます。Q_INVOKABLE を参照してください。
この関数は Qt 6.10 で導入されました。
QCapturableWindow::QCapturableWindow(const QCapturableWindow &other)
other QCapturableWindowを使用して新しいウィンドウ情報を構築します。
[constexpr noexcept] QCapturableWindow::QCapturableWindow(QCapturableWindow &&other)
other から移動して QCapturableWindow を構築します。
[noexcept] QCapturableWindow::~QCapturableWindow()
ウィンドウ情報を破棄する。
[noexcept] void QCapturableWindow::swap(QCapturableWindow &other)
現在のウィンドウ情報をother と入れ替える。
[noexcept] QCapturableWindow &QCapturableWindow::operator=(QCapturableWindow &&other)
other をこのQCapturableWindow に移動する。
QCapturableWindow &QCapturableWindow::operator=(const QCapturableWindow &other)
other ウィンドウ情報をこのQCapturableWindow に割り当てます。
関連する非会員
[noexcept] bool operator!=(const QCapturableWindow &lhs, const QCapturableWindow &rhs)
ウィンドウ情報lhs とrhs が異なるウィンドウを参照している場合はtrue を返し、そうでない場合はfalse を返す。
[noexcept] bool operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs)
ウィンドウ情報lhs とrhs が同じウィンドウを参照している場合はtrue を返し、そうでない場合はfalse を返す。
© 2026 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.