Skip to content

Commit ee53327

Browse files
committed
显示本地语言
1 parent 23b26ce commit ee53327

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ int main(int argc, char *argv[])
1717

1818
//QFontDatabase::addApplicationFont("://DejaVuSans.ttf");
1919
//a.setFont(QFont(DejaVuSans));
20-
LOG_MODEL_DEBUG("main", "font:%s", a.font().family().toStdString().c_str());
20+
LOG_MODEL_DEBUG("main", "font:%s;codec:%s",
21+
a.font().family().toStdString().c_str(),
22+
QTextCodec::codecForLocale()->name().data());
2123

2224
//设置插件路径(msvc 下没有用)
2325
a.addLibraryPath(CGlobal::Instance()->GetDirApplication());

0 commit comments

Comments
 (0)