Dear all,
I am running the below sample in console mode. without startX.
The program crashes in the below line.
"QFont font;"
#include <QtGui>
int main(int argc, char* argv[])
{
QApplication app(argc, argv, QApplication::Try);
QFont font;
QFontMetrics metrics(font);
int width = metrics.width("test");
return app.exec();
}
Please anyone help me to solve this.
I am using Qt4.4.0 in Slackware.
Note: I have builed Qt with flags (-no-sm -no-X11 etc.),
Thank you.
Bookmarks