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

Reply
New Contributor
markman86
Posts: 2
Registered: ‎06-26-2012
My Device: Blackberry 10 Alpha
Accepted Solution

BB10 QT Fonts issue

Hi all,

 

Starting devlopment for BB and I started off with a simple hello world app as follows:

 

#include <bb/cascades/Application>
#include <QtCore/QLocale>
#include <QtCore/QTranslator>
#include <bb/cascades/Label>

#include "app.hpp"

using ::bb::cascades::Application;

int main(int argc, char **argv)
{
QApplication app(argc, argv);

QLabel *label = new QLabel("Hello World!");
label->show();

return app.exec();
}

 This is the error I recieve: QFontDatabase: Cannot find font directory /base/usr/lib/qt4/fonts - is Qt installed correctly?

 

Any ideas?

Please use plain text.
New Contributor
markman86
Posts: 2
Registered: ‎06-26-2012
My Device: Blackberry 10 Alpha

Re: BB10 QT Fonts issue

figured it out had to add <env var="QT_QPA_FONTDIR" value="/usr/lib/qt4/lib/fonts"/> to my bar file

Please use plain text.