QXlsx
QXlsx copied to clipboard
The QApplication font family is emtpy string in XP, the GUI's font can't display correctly
Every simpe code:
#include "xlsxdocument.h"
using namespace QXlsx;
int main(int argc, char *argv[]) { QApplication app(argc, argv);
QFile outFile("a.txt");
outFile.open(QIODevice::WriteOnly | QIODevice::Append);
QTextStream ts(&outFile);
ts << app.font().family() << "\r\n";
// without the follow line, everything works fine
QXlsx::Document xlsxW;
return 0;
}
Win10 : GOOD. XP: without using the QXlsx, everything is good. otherwise, app.font().family() is empty string.
I met same problem.
Dear @Cpppro
That function seems to be caused by Qt's own functionality. Maybe.
I don't have an XP environment, so I couldn't test it.