mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00

Make it convenient to add third-party libraries. Signed-off-by: Le Tan <tamlokveer@gmail.com>
18 lines
328 B
C++
18 lines
328 B
C++
#include "vmainwindow.h"
|
|
#include <QApplication>
|
|
#include <QTextCodec>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
|
|
QTextCodec *codec = QTextCodec::codecForName("UTF8");
|
|
if (codec) {
|
|
QTextCodec::setCodecForLocale(codec);
|
|
}
|
|
VMainWindow w;
|
|
w.show();
|
|
|
|
return app.exec();
|
|
}
|