#include <QApplication>
#include <QQmlApplicationEngine>
#include <QQuickStyle>

#include "world.hpp"

int main(int argc, char** argv)
{
    QApplication app(argc, argv);
    app.setApplicationName("Headway");

#ifdef Q_OS_WINDOWS
    QQuickStyle::setStyle("Universal");
#else
    QQuickStyle::setStyle("Basic");
#endif

    QQmlApplicationEngine engine;
    qmlRegisterType<Headway::World>("Headway", 4, 1, "World");
    engine.load(QUrl(QStringLiteral("qrc:/MainWindow.qml")));

    if (engine.rootObjects().isEmpty())
        return -1;

    return app.exec();
}

#include <QApplication>
#include <QQmlApplicationEngine>
#include <QQuickStyle>

#include "world.hpp"

int main(int argc, char** argv)
{
    QApplication app(argc, argv);
    app.setApplicationName("Headway");

#ifdef Q_OS_WINDOWS
    QQuickStyle::setStyle("Universal");
#endif

    QQmlApplicationEngine engine;
    qmlRegisterType<Headway::World>("Headway", 4, 1, "World");
    engine.load(QUrl(QStringLiteral("qrc:/MainWindow.qml")));

    if (engine.rootObjects().isEmpty())
        return -1;

    return app.exec();
}

Use Default style on non-Windows
Use Default style on non-Windows
