Files

21 lines
384 B
C++
Raw Permalink Normal View History

2018-05-27 15:00:16 -07:00
#pragma once
#include <memory>
#include <QApplication>
inline std::unique_ptr<QApplication>
applicationSetup()
{
static int Argc = 0;
static char ArgvVal = '\0';
static char* ArgvValPtr = &ArgvVal;
static char** Argv = &ArgvValPtr;
auto app = std::make_unique<QApplication>(Argc, Argv);
app->setAttribute(Qt::AA_Use96Dpi, true);
return app;
}