I am trying to write a QMl component and want all the text to have a standard look within it. Rater than defining the same font every time i have text, I want to set it as a property, both for internal use (so all text looks the same) and for external use so the font can be set on my compnent by whatever uses it.

I want something similar to the following, which doesn't work as properties can only be basic types:
Code:
``` Rectangle {
property Font myFont: Font {family "arial"; poinSize: 12 }   //font property with an initial property value assigned
Text { text "hello world"; font: myFont }
}

//And when using my component
Rectangle {
MyComponent {
font { family:"modern"; bold:true; pointSize: 38 }
}
}```
I tried switching the property to be an Item or a variant, but neither work. Any ideas how to get this to work?