随笔分类 -  Qt

Qt使用技巧
摘要:0 常用设置 //table setting //设置表头 QStringList header; header<< "ID" << "Info1"<<"info2" << "info3"; ui->tableWidget_1->setHorizontalHeaderLabels(header); 阅读全文
posted @ 2020-07-09 17:28 cloos.xie 阅读(1358) 评论(0) 推荐(0)
摘要:1 产生随机数 /// \brief TLGFunctionTest::getList 获取随机不重复的随机数 /// \param ListLength 返回列表的长度 /// \param ListMaxNum 队列中最大值 /// \return 返回QList类型的任务队列 QList<in 阅读全文
posted @ 2020-06-30 15:07 cloos.xie 阅读(874) 评论(0) 推荐(0)
摘要:Qt中的startBar指的是底部的状态栏,可以用于显示信息、设置按钮等操作,不过其不能通过界面设计快速设计,只能通过代码编写的方式实现对其的创建。 1、直接设置显示信息: ui->startBar->showMessage(tr("显示内容"),0); 说明:第二个参数表示显示的时间,默认值为0, 阅读全文
posted @ 2019-05-21 08:46 cloos.xie 阅读(3758) 评论(0) 推荐(0)
摘要:头文件:#include <QString> 1、拼接 1)直接使用“+”; 2)append() 在字符串后面添加字符串; 3)prepend() 在字符串前面添加字符串。 QString str1 = "nihao "; QString str2 = "shijie"; QString str3 阅读全文
posted @ 2019-05-21 08:45 cloos.xie 阅读(3557) 评论(0) 推荐(1)
摘要:参考链接:https://www.cnblogs.com/woodenhead/p/8208870.html 参考链接:http://blog.sina.com.cn/s/blog_6f3d8a850102vwfx.html Ubuntu安装Qt时默认为动态编译,编译的结果运行时需要配置很多库,如果 阅读全文
posted @ 2019-03-29 20:04 cloos.xie 阅读(1656) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2019-03-20 17:51 cloos.xie 阅读(31) 评论(0) 推荐(0)