12-10-2012 09:38 AM
I'm using TextStyleDefinition in every QML to define the style of the labels I'm using.
The problem is that I want to use those TextStyleDefinition in more than one QML, I want to reuse them because those styles I'm defining are used across the application. I've been trying to create a QML just for TextStyles but I can't get it to work using attachedObjects.
How can I achieve this? Basically I want to create TextStyles that can be used in every QML(Pages or Sheets).
Thank you very much indeed
Solved! Go to Solution.
12-10-2012 09:54 AM
12-11-2012 08:02 AM
I have chosen the same method as lew, and it works pretty well.
It can be extended to other global variable to access: device-width, backgrounds and focus colors that you'll need again and again, ....