从 SVG 图像创建像素图

如果您有一个可自由缩放的 SVG 格式图标,可以在图像查看器中打开它,将其导出为多个不同大小的图像,创建一组像素图。

选择工具栏上的出口 (Export)。

然后就可以使用QIcon::addPixmap() 将像素图添加到不同模式和状态的图标中。

另请参阅 " 如何:设计用户界面 ""用户界面设计"。

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.