#include #include #include #include #include #include #include int main(int argc, char *argv[]) { qputenv("QT_QPA_PLATFORM", "windows:fontengine=freetype"); QApplication a(argc, argv); QFontDatabase database; foreach(QString family, database.families()) { QFontInfo theFont(family); qDebug() << theFont.family().toLower(); } FILE *file = fopen(a.applicationFilePath().toLatin1().constData(), "rb"); QLabel label(file? "file opened" : "FILE OPEN FAILED"); if(file) { fclose(file); } label.show(); return a.exec(); }