摘要:
组合字符常用arg()函数 QString test=QString("_haha_%1_hehe%2") .arg(int(2)).arg("aa"); //test="_haha_2_heheaa" QString arg(const QString &a, int fieldWidth=0, 阅读全文
posted @ 2018-08-15 17:26
xianyongchao
阅读(6284)
评论(0)
推荐(0)
摘要:
1、addItems需要注意的事项: 1.在QT中设置maxVisibleItems的值,设置Items的最大可显示的值。(一般默认为10) 2.在每次需要清除已经添加的tems的时候需要注意,ui.comboBox_2->count()的值是一直在变动的。代码如下 void DataDownloa 阅读全文
posted @ 2018-08-15 16:29
xianyongchao
阅读(522)
评论(0)
推荐(0)
摘要:
1、打开获取文件夹路径的对话框 QString filePath = QFileDialog::getExistingDirectory(this, "请选择文件保存路径...", "./"); QString getExistingDirectory(QWidget *parent = Q_NUL 阅读全文
posted @ 2018-08-15 14:49
xianyongchao
阅读(4623)
评论(0)
推荐(0)