随笔分类 - QT之路
摘要://创建表格头 (灰色冻结状态的) QStringList header; header<<"Time"<<" ID "<<" SendSRC "<<"Conter"<<"Data1"<<"Data2"; ui->tableWidget->setHorizontalHeaderLabels(head
阅读全文
摘要:使用环境: VS2010 & QT Designer5 #include <QDateTime> //包含头文件 QDateTime local(QDateTime::currentDateTime()); //获取电脑时间 QString localTime = local.toString("m
阅读全文
摘要:使用环境: VS2010 & QT Designer5 1、 在QT Designer 拖入 textBrowser,点击右键属性获得 name值 2、 在程序使用的地方 加入 ui.textBrowser->setText("nihao"); 3、编译运行程序。
阅读全文

浙公网安备 33010602011771号