[Qt-interest] stylesheets and qproperty-<PROPERTY> datatypes

wim.delvaux at adaptiveplanet.com wim.delvaux at adaptiveplanet.com
Wed Oct 14 19:56:43 CEST 2009


Hi,

Is it possible to define a Q_PROPERTY that accepts multiple data elements like 
the 'border' or the margin property.

I have these 'range' properties that have a minimal, maximal and color value .

I would like to do something like this

class Range {
	int min;
	int max;
	QColor color;
};

...

SpecialWidget {

Q_PROPERTY( Range theRange .... )
};

and the specify in the stylesheet

SpecialWidget {
	theRange : 10 20 rgb( 255, 0, 0 );
}


Thx
W




More information about the Qt-interest-old mailing list