summaryrefslogtreecommitdiffstats
path: root/DOCS/client_api_examples/qt_opengl/main.cpp
blob: 086a4b4617baa698bbb438a91d16e2cbe6727a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <QApplication>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    // Qt sets the locale in the QApplication constructor, but libmpv requires
    // the LC_NUMERIC category to be set to "C", so change it back.
    setlocale(LC_NUMERIC, "C");
    MainWindow w;
    w.show();
    return a.exec();
}