QCapturableWindow Class
Se utiliza para obtener la información básica de una ventana capturable. Más...
| Encabezado: | #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) |
Personas no afiliadas relacionadas
| 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 sobre la ventana, excepto el método « QCapturableWindow::isValid », que obtiene el estado actual cada vez que se invoca.
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 Access:
| 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 no válida hace referencia a una ventana que no existe o que no se corresponde con ninguna.
Funciones de Access:
| bool | isValid() const |
Documentación de las funciones de miembro
QCapturableWindow::QCapturableWindow()
Crea una información de ventana capturable de tipo null que no hace referencia a ninguna ventana.
[explicit invokable, since 6.10] QCapturableWindow::QCapturableWindow(QWindow *window)
Crea una instancia de QCapturableWindow que se corresponde con la ventana indicada.
La descripción de QCapturableWindow coincidirá con el título del QWindow especificado.
Ten en cuenta que el constructor puede crear una instancia no válida si la ventana ` QWindow ` especificada aún no se ha mostrado. Por lo tanto, si la aplicación Qt no se está ejecutando, es de esperar que se obtenga una instancia no válida de ` QCapturableWindow `. La validez de la instancia se puede comprobar consultando ` isValid ` a lo largo del tiempo.
Si se le pasa un `nullptr` como entrada, este método devolverá una instancia que nunca será válida.
Si se le pasa una ventana que no es de nivel superior, este método devolverá una instancia que nunca será válida.
Nota: Esta función se puede invocar 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)
Crea una nueva ventana de información utilizando ` other QCapturableWindow`.
[constexpr noexcept default] QCapturableWindow::QCapturableWindow(QCapturableWindow &&other)
Crea un objeto `QCapturableWindow` a partir de un objeto ` other`.
[noexcept] QCapturableWindow::~QCapturableWindow()
Elimina la información de la ventana.
[noexcept] void QCapturableWindow::swap(QCapturableWindow &other)
Intercambia la información de la ventana actual con la de other.
[noexcept] QCapturableWindow &QCapturableWindow::operator=(QCapturableWindow &&other)
Traslada other a esta dirección: QCapturableWindow.
QCapturableWindow &QCapturableWindow::operator=(const QCapturableWindow &other)
Asigna la información de la ventana « other » a este archivo « QCapturableWindow ».
Elementos no miembros relacionados
[noexcept] bool operator!=(const QCapturableWindow &lhs, const QCapturableWindow &rhs)
Devuelve « true » si la información de la ventana « lhs » y « rhs » hacen referencia 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 hacen referencia 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.