Hello,
I am using Qt to draw some graphics and I want to use the application also form console, without X server running. The problem is, that when I call QPainter::drawText(...) on my QImage, I got runtime error saying
Qt Code:
ASSERT failure in QFontDatabase: "A QApplication object needs to be constructed before FontConfig is used.", file text/qfontdatabase_x11.cppTo copy to clipboard, switch view to plain text mode
I can't construct QApplication, because then the application would not run without X server. I tried to construct QCoreApplication, but that did not help. So how can I draw text onto QImage without X server running?
Any advice appreciated...
Bookmarks