Added output pipe for Windows cmd. Fixed some colors

This commit is contained in:
Yury Shuvakin
2024-02-15 12:52:48 +09:00
parent 661a1b6ba2
commit 6942d286f3
5 changed files with 21 additions and 5 deletions

View File

@@ -5,15 +5,29 @@
#include <QLocale>
#include <QTranslator>
#include <QFontDatabase>
#include <QScreen>
#include "DataController.h"
#ifdef _WIN32
#include "Windows.h"
#endif
int main(int argc, char *argv[])
{
//#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
// QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
// QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
//#endif
// qputenv("QT_SCALE_FACTOR", "0.5");
#ifdef _WIN32
if (AttachConsole(ATTACH_PARENT_PROCESS)) {
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
}
#endif
QGuiApplication app(argc, argv);
QCoreApplication::setOrganizationName("Tksi");