工具示例
Qt 配备了一系列功能强大的工具类,从容器和迭代器到字符串处理和操作类。
其他类提供应用程序基础结构支持,处理插件加载和管理配置文件。
补全器示例展示了如何根据模型提供的数据为输入部件提供字符串补全功能 | |
自定义完成器示例展示了如何根据模型提供的数据为输入 widget 提供字符串完成功能。填写器会根据用户输入的前三个字符弹出可能的单词建议,用户选择的单词会使用 QTextCursor 插入到 TextEdit 中。 | |
QRegularExpression 示例通过提供一个可在自定义文本字符串上创建和测试新正则表达式的环境,展示了如何将 Qt 中的正则表达式应用于文本 | |
树形模型补全器示例展示了如何为分层模型提供补全设施,使用句号作为分隔符来访问 Child、GrandChild 和 GrandGrandChild 级别的对象。 | |
该示例展示了如何使用 Qt 撤销框架实现撤销/重做功能 |
© 2025 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.