[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Using QIcon in QML
From: Shaun Reich <shaun.reich () kdemail ! net>
Date: 2011-04-24 1:32:52
Message-ID: BANLkTimCK_5j7_Qd3kM7u444tujU=Uzj7g () mail ! gmail ! com
[Download RAW message or body]
I'd like to use QIcon in qml code, I've looked into
kde-runtime/plasma/declarativeimports/QIconItem...
However, the property setIcon only allows a QIcon. which presents a
problem because I don't see a way of constructing a qicon from qml.
I've tried icon: QIcon("icon");, but that doesn't work, citing an
unknown variable; QIcon.
Am I doing something wrong? Or does the property need to be adjusted
to allow string representations and transform it into a qicon
automatically?
--
Shaun Reich,
KDE Software Developer (kde.org)
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic