最近使用VS2013+QT5.5 創(chuàng)建了一個項目,它的菜單是由代碼創(chuàng)建的、? ?發(fā)現(xiàn)運行之后全部是亂碼
MainWindow::MainWindow(QWidget *parent, Qt::WFlags flags)
: QMainWindow(parent, flags)
{
xishou=xianshibochang=savesegy=false;
ui.setupUi(this);
ui.setupUi(this);
mainview =new MainView;
setCentralWidget(mainview);
Filemenu=menuBar()->addMenu(tr("文件"));
Monimenu=menuBar()->addMenu(tr("計算"));
chuangjiangongquAct=new QAction(tr("創(chuàng)建工區(qū)"),this);
shuzhimoniAct=new QAction(tr("數(shù)值模擬"),this);
stopAct=new QAction(tr("停止"),this);
Filemenu->addAction(chuangjiangongquAct);
Monimenu->addAction(shuzhimoniAct);
Monimenu->addAction(stopAct);
connect(chuangjiangongquAct,SIGNAL(triggered()),this,SLOT(canshushezhi()));
connect(shuzhimoniAct,SIGNAL(triggered()),this,SLOT(shuzhimoni()));
connect(stopAct,SIGNAL(triggered()),this,SLOT(stopmini()));
setWind
文章來源地址http://www.zghlxwxcb.cn/news/detail-544876.html
文章來源:http://www.zghlxwxcb.cn/news/detail-544876.html
到了這里,關(guān)于VS2013+QT5.5 中文亂碼問題 解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!