[Qt-qml] Why can't I stylesheet a font?

Jason H scorp1us at yahoo.com
Tue Jul 13 01:20:22 CEST 2010


I'd like to be able to do this:

Font{id:third;face:"NiteClub";pointSize:30;color:"White"}

Rectangle {
    Text{text:"";font:third;anchors.top:parent.anchors.Top}
}

But I get the message "Element is not creatable".  I'd like to be able to 
specify this as a font class like a style sheet so that I can theme things, like 
with a style sheet 


The whole nomenclature of font.property, I'd expect the whole font.property to 
be short hand?


      




More information about the Qt-qml mailing list