[Qt-creator] Using properties in QtCreator

Christophe Meessen christophe at meessen.net
Tue Jan 26 17:16:18 CET 2010


Hello,

I've created a widget. I whished to add a property which is a constant 
parameter that the user would set when designing the interface with 
QtCreator (QtDesigner).

I saw I could use dynamic property, but I would prefer a predefined 
property with a list of predefined values (Q_ENUMS).

I then instantiate a Widget et promote it to my class, but the property 
doesn't show up in the property list in the bottom right pane. I wish it 
was possible to set this property value when designing the interface. 
Any suggestion ?

Ch. Meessen



More information about the Qt-creator-old mailing list