RegExpFilter QML Type
Filtra los datos de un « SortFilterProxyModel » comparando el valor de un rol con una expresión regular. Más información...
| Import Statement: | import QtQml.Models |
| Since: | Qt 6.12 |
| Inherits: | |
| Status: | Technology preview |
Este tipo se encuentra en fase de vista previa tecnológica y está sujeto a cambios.
Propiedades
- regExp : regexp
Descripción detallada
RegExpFilter permite filtrar los datos del modelo mediante la coincidencia de expresiones regulares en un rol especificado.
Se puede asignar directamente una expresión regular literal de JavaScript a un regExp:
SortFilterProxyModel {
sourceModel: processModel
filters: RegExpFilter {
roleName: "userId"
regExp: /root/i
}
}Documentación de la propiedad
regExp : regexp
Esta propiedad contiene la expresión regular que se utiliza para filtrar los datos. Se puede asignar directamente un literal de expresión regular de JavaScript.
Cuando regExp tiene un patrón vacío, el filtro está inactivo y se dejan pasar todas las filas.
© 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.