diff --git a/src/main.cpp b/src/main.cpp index 38b1b4111..755ec4501 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);