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.

inside custom component

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 10
Registered: ‎10-05-2012
My Device: Blackberry 10 Alpha
My Carrier: ATT
Accepted Solution

How to use 'Slate Pro' font in pure QML/Qt C++ app?

I want to use the BB10 default Slate Pro font style in my pure QML/Qt C++ app. Qt seems to see Slate Pro being available but specifying it in Text { font.family: "Slate Pro" } doesn't work, the font style is always the default one for pure QML.

 

Any suggestion on how to achieve that? Thanks in advance.

Developer
Posts: 103
Registered: ‎12-31-2012
My Device: Blackberry 9810
My Carrier: Verizon

Re: How to use 'Slate Pro' font in pure QML/Qt C++ app?

[ Edited ]

HI

 

Have you been able to use any other font from QML/QT for that matter. If not, I  think there is already a ticket opened for that issue...

 

Please see this http://supportforums.blackberry.com/t5/Cascades-Development/How-can-I-set-different-kind-of-fonts-to...

 

 

_Dishooom

Contributor
Posts: 10
Registered: ‎10-05-2012
My Device: Blackberry 10 Alpha
My Carrier: ATT

Re: How to use 'Slate Pro' font in pure QML/Qt C++ app?

Thanks for the pointer, however, the issue I have is in pure QML not Cascade.

But I found out that the default font for pure QML is already 'Slate Pro'.... : )

And I indeed can change QML default text style by using QApplication::setFont()