12 2020 档案

摘要:QDir cfgPathDir = Bit2System_NameSpace::Cfg_Path; if(!cfgPathDir.exists()){ return; } QStringList filters; filters << QString("*.xml"); cfgPathDir.set 阅读全文
posted @ 2020-12-23 23:05 朱小勇 阅读(3746) 评论(0) 推荐(0)
摘要:1、使用命名空间 using namespace std; 2、使用别名 using Uisystems = std::vector<UiSystemService*>; 类似于typedef typedef std::string TString; 阅读全文
posted @ 2020-12-23 22:33 朱小勇 阅读(202) 评论(0) 推荐(0)
摘要:1、动态生成 QGridLayout* lay = new QGridLayout(); int total = paras.size(); int colum = 4; for(int i=0; i<total; i++){ Zparam* pZparam = new Zparam(this); 阅读全文
posted @ 2020-12-15 15:20 朱小勇 阅读(1595) 评论(1) 推荐(0)
摘要:1、使用Visio画图 2、存png 3、把png在Qml中使用 4、字体会变模糊 阅读全文
posted @ 2020-12-07 11:17 朱小勇 阅读(904) 评论(0) 推荐(0)
摘要:1、下图是用qml画的,用 QQuickWidget承载,假设程序初始化这个界面放在StackedWidget的1界面 2、切换到StackedWidget的2界面 3、再切换到StackedWidget的1界面,qml消失 此问题出现在Qt5.6.1,同样的代码Qt5.10没问题 阅读全文
posted @ 2020-12-07 00:07 朱小勇 阅读(415) 评论(0) 推荐(0)