[Qt-qml] Newbie questions
Thomas Ganshorn
mailings at novaimages.de
Mon May 30 11:20:14 CEST 2011
Hi
I have a button that has multiple combining states.
Basically like
-> Enabled/Disabled
-> On/Off
-> Ok, Warning, Error, Inform State
Now the button needs to display differently based on each combination of values.
Eg. If ON the rectangle is filled, if off it isn't.
If Ok, the color of the button is green, if warning it is yellow, red for error
and blue for inform.
Enabled buttons have rounded corners, disabled buttons have hard corners.
So what i would to like would be assigning multiple states at once.
What i don't like to do would be defining all conditions as states.
I COULD do it without states by directly tying the values like enabled to eg.
the color of an item.
But i don't think it is the right way to do it.
Or at least it would entangle look and functionalty and i thought that is the
main reason for qml.
So are there multiple states ? If not is this a planned feature ? And if not can
it be added as a planned feature ?
Greetings Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110530/fc9fbbf6/attachment.html
More information about the Qt-qml
mailing list