从 SVG 图像创建位图

如果您有一张可自由缩放的 SVG 格式图标,可以在图像查看器中打开它,将其导出为多张不同尺寸的图像,从而创建一组位图。

在工具栏上选择“导出 ”(Export )。

然后,您可以使用“QIcon::addPixmap ”() 将这些像素图添加到不同模式和状态下的图标中。

另请参阅 《如何:设计用户界面》和《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.