DialogDemo Example
#include <QApplication>
#include <DevMachines/QtitanStyle>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication app( argc, argv );
app.setOrganizationName(QStringLiteral("Developer Machines"));
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
app.setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round);
#endif
#if 0
AdobePhotoshopStyle* style = new AdobePhotoshopStyle();
style->setTheme(AdobePhotoshopStyle::Gray);
#else
Office2016Style* style = new Office2016Style();
style->setTheme(Office2016Style::Black);
#endif
qApp->setStyle(style);
MainDialog dialog;
return dialog.exec();
}