随笔分类 -  QT之路

摘要://创建表格头 (灰色冻结状态的) QStringList header; header<<"Time"<<" ID "<<" SendSRC "<<"Conter"<<"Data1"<<"Data2"; ui->tableWidget->setHorizontalHeaderLabels(head 阅读全文
posted @ 2017-03-12 08:50 pupil_小龙 阅读(9017) 评论(0) 推荐(0)
摘要:使用环境: VS2010 & QT Designer5 #include <QDateTime> //包含头文件 QDateTime local(QDateTime::currentDateTime()); //获取电脑时间 QString localTime = local.toString("m 阅读全文
posted @ 2017-03-12 08:44 pupil_小龙 阅读(649) 评论(0) 推荐(0)
摘要:使用环境: VS2010 & QT Designer5 1、 在QT Designer 拖入 textBrowser,点击右键属性获得 name值 2、 在程序使用的地方 加入 ui.textBrowser->setText("nihao"); 3、编译运行程序。 阅读全文
posted @ 2017-03-02 18:05 pupil_小龙 阅读(13938) 评论(0) 推荐(0)