tools/templates/main.cpp
author Wuzzy <Wuzzy2@mail.ru>
Thu, 01 Nov 2018 20:29:42 +0100
changeset 14084 b8df809c62bf
parent 359 59fbfc65fbda
permissions -rw-r--r--
Fix game window width/height setting being broken when using Arabic locale Qt displays numbers differently in Arabic. The spinbox window height/width used getText instead of value to get the value, which was wrong because this gets the user-facing string (in arabic) instead of the number to use internally.

#include <QApplication>

#include "mainform.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    MyWindow *mainWin = new MyWindow;
    mainWin->show();
    return app.exec();
}