Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
mstawick
Posts: 47
Registered: ‎06-24-2010
My Carrier: Orange
Accepted Solution

Global TextStyleDefinition method working with QML editor preview

Hey,

 

I would like to be able to define global TextStyleDefinition object which I could reference in many qml files. This I can do. But I'm looking for method that will work with QML preview in momentics - so I can see my changes live, without need to deploy.

 

Does anyone know of such method?

 

Thanks,

Michal

Please use plain text.
Developer
mstawick
Posts: 47
Registered: ‎06-24-2010
My Carrier: Orange

Re: Global TextStyleDefinition method working with QML editor preview

bump

Please use plain text.
Developer
Developer
lew
Posts: 174
Registered: ‎03-05-2009
My Carrier: -

Re: Global TextStyleDefinition method working with QML editor preview

afaik not possible. i wouldn't trust the qml previewer either with font sizes...they never looked the same when ran on actual device...(but then that was back in <beta3, haven't used qml previewer since then :smileyhappy:

Please use plain text.
Developer
mstawick
Posts: 47
Registered: ‎06-24-2010
My Carrier: Orange

Re: Global TextStyleDefinition method working with QML editor preview

I was afraid that was an answer. I was just hoping that maybe someone managed to hack a smart way around it :smileywink:

 

It's also quite strange that we have to specify other sizes in pixels (eg. image sizes), but font size goes in points. It'll be a nightmare once they decide to change resolutions. Of course if they even get to this point, which I hope they will :smileywink:

Please use plain text.