mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-29 03:26:39 +08:00
23 lines
490 B
C++
23 lines
490 B
C++
#include "videoplayer.h"
|
|
#include <QApplication>
|
|
|
|
#include <QtCore/QLocale>
|
|
#include <QtCore/QTranslator>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
QTranslator ts;
|
|
if (ts.load(qApp->applicationDirPath() + "/i18n/QtAV_" + QLocale::system().name()))
|
|
a.installTranslator(&ts);
|
|
QTranslator qtts;
|
|
if (qtts.load("qt_" + QLocale::system().name()))
|
|
a.installTranslator(&qtts);
|
|
|
|
VideoPlayer w;
|
|
w.show();
|
|
|
|
return a.exec();
|
|
}
|