QFontDatabase: Cannot find font directory /usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts - is Qt installed correctly?
QFontDatabase: Cannot find font directory /usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts - is Qt installed correctly?
在執行 QT 時, 都會出現下面這個錯誤?
QFontDatabase: Cannot find font directory /usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts - is Qt installed correctly?
這似乎是 QT 預設的字型路徑, 所以必須補上 QT_QWS_FONTDIR 這個變數.
export QT_QWS_FONTDIR=/usr/lib/fonts
reference: http://rd-value.blogspot.tw/
留言
張貼留言