qmainwindow运行直接最大化

QtAuditSys w;
// w.show();
w.showMaximized();

 

资源:

Qt资源的相对路径:必须在工程的qrc文件中增加你需要的文件或者资源,引用方法是:":/路径/你的资源.png"
比如:如图中的lang_en.qm资源

        m_pTranslator->load(":/lang/chinese.qm") ) 

posted on 2020-02-27 11:34  lydstory  阅读(2017)  评论(0)    收藏  举报

导航