PDA

View Full Version : What property of Qwidget can I use to internal purposes ?



tonnot
23rd August 2011, 17:50
I'd need a property only for my internal purposes.
That is to say, a property which not interfere with any other proccess.
I remember the 'tag' property for VisualBasic6.
Is there any similar at QT ?
Thanks

derektmm
23rd August 2011, 18:30
Maybe its an overkill for what you need, but without knowing more I would probably suggest to subclass QWidget and create your own properties in your class, while keeping all QWidget functionality?

tonnot
23rd August 2011, 19:40
yes, subclass is not desirable. I only need a qt independent property.

NullPointer
24th August 2011, 00:33
Hi,

You can use the QObject::setProperty, using the QT dynamic properties... It's also accessible from Designer, in the "+" button at top of properties list...

Hth.

tonnot
24th August 2011, 09:33
Yes !!
Thanks .