07-23-2013 05:09 AM
i want to get the QString width in bb10, below is the code i used.
QFont font = QApplication::font();
fprintf(stderr, "Width of ABC is %f\n",x);
but i got an segment fault, some body help me why this happened?
below is the stack
Thread  (STOPPED) (Suspended : Signal : SIGSEGVegmentation fault)
initializeDb() at 0x793a5a72
QFontDatabase::findFont() at 0x793a7428
QFontDatabase::load() at 0x793a816e
QFontPrivate::engineForScript() at 0x7938fe8c
QTextEngine::fontEngine() at 0x793b641c
QTextEngine::shapeTextWithHarfbuzz() at 0x793b6fd6
QTextEngine::shapeText() at 0x793b78e2
QTextEngine::shape() at 0x793b7c38
QTextEngine::width() at 0x793ba98c
QFontMetrics::width() at 0x793a2784
HelloCascadesApp::HelloCascadesApp() at hellocascadesapp.cpp:56 0x8049ba2
main() at main.cpp:27 0x804a472
07-23-2013 05:28 AM
07-25-2013 02:35 AM
why blackberry do not support this interface?
good question, my colleague added a feature request for that half a year ago. maybe you can find it in jira and add votes to it.
07-25-2013 02:37 AM