本页内容

FilterBase QML Type

提供过滤器通用功能的抽象基类。更多内容...

Import Statement: import QtQml.Models
Since: Qt 6.10
Inherits:

QtObject

Inherited By:

AllOfFilter, AnyOfFilter, FunctionFilter, RangeFilter, RegExpFilter, RoleFilter, and ValueFilter

Status: Technology preview

此类型处于技术预览阶段,内容可能会有变动。

属性

详细说明

FilterBase 为所有从其继承的过滤器提供了一组通用属性。

属性文档

column : int

此属性指定应将筛选器应用于模型中的哪一列。如果值为-1 ,则筛选器将应用于模型中的所有列。

默认值为-1 。

enabled : bool

此属性可使SortFilterProxyModel 在过滤模型数据时将此过滤器纳入考虑范围。

默认值为true 。

inverted : bool

此属性会反转过滤条件,使得原本会被过滤掉的数据反而被显示出来。

默认值为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.