HTYEdit/main.cpp

19 lines
523 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "mainwindow.h"
#include <QApplication>
#include <QTextCodec>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qSetMessagePattern("[ %{file}: %{line} ] %{message}");
/* Qt5以下
QTextCodec *tc = QTextCodec::codecForName("UTF-8");
QTextCodec::setCodecForTr(tc);
QTextCodec::setCodecForLocale(QTextCodec::codecForLocale());
QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale());
*/
MainWindow w;
w.show();
return app.exec();
}