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 default] 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.