QXlsx icon indicating copy to clipboard operation
QXlsx copied to clipboard

The QApplication font family is emtpy string in XP, the GUI's font can't display correctly

Open Cpppro opened this issue 4 years ago • 1 comments

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.

Cpppro avatar Dec 20 '20 03:12 Cpppro

I met same problem.

huifeichong avatar Sep 30 '21 06:09 huifeichong

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.

j2doll avatar Dec 18 '23 08:12 j2doll