[Qt-interest] Setting a label's value from a slider automatically on launch
Ganshorn Thomas
mailings at novaimages.de
Wed Aug 24 19:07:24 CEST 2011
Basically it is interesting that the best feature about qml solves
exactly that.
Your widgets show the values of a property and modify that property.
In QWidgets you have signals and slots to set a value of a slider or get it.
But in qml you just define "That Widget should show that value"
THAT is the real usefull stuff about qml and that's something i really
miss about the qwidget system.
(QML is just not usable for me because i have some things like ->
resizable windows ;-) )
Am 24.08.2011 19:03, schrieb David Doria:
>> Remember that if slider isn't moved, no signals are fired, so you need
>> to set the first value by hand.
> Yea, that is definitely the issue, I was just wondering if there was
> some magic way to tell everything to "fire your initialization
> signals" or something like that. When you get a bunch of controls on
> the form, manually setting them all seems to leave a lot of room for
> error. I just wanted to check here first to make sure this is a common
> issue to need to handle before continuing to do them manually.
>
> David
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list