Can't find font directory
I installed "Qt Android Snapshot":http://download.qt-project.org/snapshots/qt/5.2/5.2.0/2013-12-06_200/qt-windows-opensource-5.2.0-android-x86-win32-offline_2013-12-06_14-05-35-200.exe into my C:\Qt directory and get the error message
QFontDatabase: Cannot find font directory 'C:\Qt\Qt5.2.0A\5.2.0\mingw48_32\lib\fonts' - is Qt installed correctly?
when I invoke qmlplugindump. Upon checking, there is no fonts directory in C:\Qt\Qt5.2.0A\5.2.0\mingw48_32\lib, only cmake and pkgconfig directories.
I found a fonts directory at C:\Qt\Qt5.2.0A\5.2.0\Src\qtbase\lib\fonts. Do I need to specify something so qmlplugindump can find this directory or is this a Qt build error? If the former, what do I need to do? If the latter, should I submit a bug report?
I ran into similar issues when trying to deploy my "Qt App to Ubuntu 12.04":http://goblincoding.com/2013/11/07/deploying-qt-5-applications-on-ubuntu-12-04/ (not QML related, but the same error). About halfway down the page is a section on the error you have experienced (just search for QFontBase, you'll find it).
Hope that helps!
I fixed such problem with setting environment variable
/usr/share/fonts/truetype/dejavu/on Ubuntu 16.
If use QtCreator it is recommended to set env vars in Project->YourConfig->Run->RunEnvironment.