Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QIcon with layer



  • Hi.

    I know that I can do this using Gimp or similar. But I'm curious. I have two icons, can I somehow mix them at runtime? For example i have folder icon 24x24 and small 10x10 icon of RSS. I would like to put this RSS icon on top left corner of folder icon and have it as one QIcone. Is it possible?

    Regards


  • Lifetime Qt Champion

    Hi,

    You can use QImage and QPainter to draw your new image then make an icon out of it.

    Hope it helps


Log in to reply