添加资产

Assets 显示通过将外部资产文件拖到Qt Quick Designer 或选择加号按钮 添加到项目文件夹的图像和其他文件。

资产视图。

要将资产添加到用户界面,可将其从Assets 拖动到Navigator2D 视图。

要在用户界面中同时添加多个资产,请先按住Ctrl 键并单击要选择的资产文件来进行多选。

将资产从Assets 拖动到Navigator2D 视图时,会自动为您创建合适类型的组件实例。例如,将为图形文件创建图像组件实例。

另请参阅 如何设计Qt Quick 用户界面Qt Quick 用户界面设计设计Qt Quick 用户界面

Copyright © The Qt Company Ltd. and other contributors. 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.