QCapturableWindow Class
Se utiliza para obtener la información básica de una ventana capturable. Más...
| Cabecera: | #include <QCapturableWindow> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Multimedia)target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
| qmake: | QT += multimedia |
| Desde: | Qt 6.6 |
| En QML: | CapturableWindow |
Propiedades
- description : const QString
- isValid : const bool
Funciones públicas
| 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) |
Relacionados No Miembros
| bool | operator!=(const QCapturableWindow &lhs, const QCapturableWindow &rhs) |
| bool | operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs) |
Descripción detallada
La clase contiene un conjunto de información de la ventana, excepto el método QCapturableWindow::isValid que extrae el estado actual cada vez que es llamado.
Véase también QWindowCapture.
Documentación de Propiedades
[read-only] description : const QString
Esta propiedad contiene una descripción de la ventana.
En la mayoría de los casos representa el título de la ventana.
Funciones de acceso:
| QString | description() const |
[read-only] isValid : const bool
Esta propiedad indica si la información sobre la ventana es válida.
Una información de ventana inválida se refiere a una ventana inexistente o no se refiere a ninguna.
Funciones de acceso:
| bool | isValid() const |
Documentación de funciones miembro
QCapturableWindow::QCapturableWindow()
Construye una información de ventana capturable nula que no hace referencia a ninguna ventana.
[explicit invokable, since 6.10] QCapturableWindow::QCapturableWindow(QWindow *window)
Construye una instancia de QCapturableWindow que corresponde a la ventana dada.
La descripción de la QCapturableWindow coincidirá con el título de la ventana QWindow.
Nota, el constructor puede crear una instancia inválida si el QWindow especificado no ha sido presentado todavía. Por lo tanto, si la aplicación Qt no se está ejecutando, se espera una instancia no válida de QCapturableWindow. La validez de la instancia puede rastrearse consultando isValid a lo largo del tiempo.
Si se le da un nullptr como entrada, este método devolverá una instancia que nunca será válida.
Si se le da una ventana que no es de nivel superior, este método devolverá una instancia que nunca será válida.
Nota: Esta función puede invocarse a través del sistema de metaobjetos y desde QML. Véase Q_INVOKABLE.
Esta función se introdujo en Qt 6.10.
QCapturableWindow::QCapturableWindow(const QCapturableWindow &other)
Construir una nueva información de la ventana utilizando other QCapturableWindow.
[constexpr noexcept] QCapturableWindow::QCapturableWindow(QCapturableWindow &&other)
Construye una QCapturableWindow desplazándose desde other.
[noexcept] QCapturableWindow::~QCapturableWindow()
Destruye la información de la ventana.
[noexcept] void QCapturableWindow::swap(QCapturableWindow &other)
Intercambia la información de la ventana actual con other.
[noexcept] QCapturableWindow &QCapturableWindow::operator=(QCapturableWindow &&other)
Mueve other en este QCapturableWindow.
QCapturableWindow &QCapturableWindow::operator=(const QCapturableWindow &other)
Asigna la información de la ventana other a este QCapturableWindow.
Relacionados No miembros
[noexcept] bool operator!=(const QCapturableWindow &lhs, const QCapturableWindow &rhs)
Devuelve true si la información de ventana lhs y rhs se refieren a ventanas diferentes, en caso contrario devuelve false.
[noexcept] bool operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs)
Devuelve true si la información de la ventana lhs y rhs se refieren a la misma ventana, en caso contrario devuelve 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.