QPdfSelection Class
La clase QPdfSelection define un rango de texto que ha sido seleccionado en una página de un documento PDF, y sus límites geométricos. Más...
| Header: | #include <QPdfSelection> |
Propiedades
|
|
Funciones públicas
| QRectF | boundingRectangle() const |
| QList<QPolygonF> | bounds() const |
| void | copyToClipboard(QClipboard::Mode mode = QClipboard::Clipboard) const |
| int | endIndex() const |
| bool | isValid() const |
| int | startIndex() const |
| QString | text() const |
Véase también QPdfDocument::getSelection().
Documentación de propiedades
[read-only] boundingRectangle : QRectF
Esta propiedad mantiene el rectángulo global (casco convexo) alrededor de bounds.
Funciones de acceso:
| QRectF | boundingRectangle() const |
[read-only] bounds : QList<QPolygonF>
Esta propiedad contiene un conjunto de regiones que el texto seleccionado ocupa en la página, representadas como polígonos. El sistema de coordenadas para los polígonos tiene el origen en la esquina superior izquierda de la página, y las unidades son puntos.
Nota: Por ahora, los polígonos devueltos por QPdfDocument::getSelection() son siempre rectángulos; pero en el futuro será posible representar regiones más complejas.
Funciones de acceso:
| QList<QPolygonF> | bounds() const |
[read-only] endIndex : int
Esta propiedad contiene el índice al final de text dentro del texto completo de la página.
Funciones de acceso:
| int | endIndex() const |
[read-only] startIndex : int
Esta propiedad contiene el índice al principio de text dentro del texto completo de la página.
Funciones de acceso:
| int | startIndex() const |
[read-only] text : QString
Esta propiedad contiene el texto seleccionado.
Funciones de acceso:
| QString | text() const |
[read-only] valid : bool
Esta propiedad indica si la selección es válida.
Funciones de acceso:
| bool | isValid() const |
Documentación de las funciones miembro
void QPdfSelection::copyToClipboard(QClipboard::Mode mode = QClipboard::Clipboard) const
Copia text en system clipboard en función del mode seleccionado.
© 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.