PNG icons on QML

Arthur Taborda arthur.hvt at gmail.com
Fri Mar 22 14:27:33 UTC 2013


Hi. I need to show a icon in a compactRepresentation. I am able to show svg
images using SvgItem, but when I try to show a IconItem using the following
code:

PlasmaCore.IconItem {
            id: icon
            source: QIcon(plasmoid.file("images", "tomatoid-icon-red.png"))
        }

I get this:

https://lh4.googleusercontent.com/-Nt8dvqTwz40/UUol5cGoCEI/AAAAAAAAO4I/5HMyiCsahsc/s161/snapshot1.png
https://lh4.googleusercontent.com/-CjXo1uS6XXQ/UUol5kgrKWI/AAAAAAAAO4E/ZCZPWOMVzCw/s310/snapshot2.png


Is this a bug, or I am doing something wrong?

-- 
Arthur Taborda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20130322/02e3633b/attachment.html>


More information about the Plasma-devel mailing list