Filter QML Type
抽象基本类型,提供过滤器的通用功能。更多
| Import Statement: | import QtQml.Models |
| Since: | Qt 6.10 |
| Inherits: | |
| Inherited By: | |
| Status: | Preliminary |
此类型正在开发中,可能会有更改。
属性
详细说明
过滤器为其继承的所有过滤器提供了一组通用属性。
属性文档
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.