Windows: Attach to console

This commit is contained in:
Tobias Fella
2021-03-01 20:50:27 +01:00
parent 7f13bb81f8
commit 699a86ef2e

View File

@@ -71,6 +71,11 @@ int main(int argc, char *argv[])
#endif
#ifdef Q_OS_WINDOWS
if (AttachConsole(ATTACH_PARENT_PROCESS)) {
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
}
QApplication::setStyle(QStringLiteral("breeze"));
auto font = app.font();
font.setPointSize(10);