预览图像

当您将鼠标光标悬停在 C++ 或 QML 代码中的图像引用上时,Qt Creator 会在工具提示中显示图像的缩略图预览。这可帮助您确认所使用的图像是否正确,而无需离开编辑器。

预览 QML 文件中的图像

要在外部图像查看器中打开图像,请在工具提示中选择文件路径。

Qt Creator 当通过资源文件 (.qrc) 或直接通过绝对文件路径引用图片时,显示图片预览。

另请参阅 创建资源文件,如何:编辑代码,编辑代码,如何:调整用户界面,以及调整用户界面

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.