Qt Quick 模板 2
Qt Quick 模板是 Qt Quick Controls.模板是控件逻辑和行为的非可视化实现。它们为 QML 中的控件提供了可视化界面,使用 Qt Quick.
尽管模板的目标是尽可能与风格无关,但在某些情况下,它们必须对控件的可视化结构做出某些假设。例如,一个自旋框上的按钮可以递增和递减自旋框的值。为了实现自旋框的行为,自旋框模板需要知道用户是在与向上还是向下按钮交互。自旋框模板的可视化实现只需定位向上和向下按钮,并将其可视化为正常、按下和禁用状态。任何输入事件处理和状态处理都由底层模板负责。
模块演变
对Qt Quick Controls 的更改列出了 Qt 6 系列 Qt 在模块 API 和功能方面所做的重要更改。
相关信息
© 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.