上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 133 下一页
摘要: 在.pro里: build_type = CONFIG(debug, debug|release) { build_type = debug } else { build_type = release } DESTDIR = $$build_type/out OBJECTS_DIR = $$buil 阅读全文
posted @ 2020-09-05 00:31 朱小勇 阅读(245) 评论(0) 推荐(0)
摘要: QtObject { Component.onCompleted: console.log("Completed")//构造函数 Component.onDestruction: console.log("Destruction")//析构函数 } 阅读全文
posted @ 2020-09-05 00:00 朱小勇 阅读(1207) 评论(0) 推荐(0)
摘要: 1、实现效果 QString a = "1,2,3,4,5"; 得到 QStringList b = {"1","2","3","4","5"} 2、实现 QString str = "a,,b,c"; QStringList list1 = str.split(','); // list1: [ 阅读全文
posted @ 2020-09-04 23:27 朱小勇 阅读(3612) 评论(0) 推荐(0)
摘要: 格式跟c语言的print一样,举例: qDebug("%d",200); 打印:200 阅读全文
posted @ 2020-09-04 23:14 朱小勇 阅读(466) 评论(0) 推荐(0)
摘要: 1、1个#用来将变量字符串化 #define toString(s) #s 打印:a 2、2个#用来连接两个字符串 #define link(a,b) a##b 这里的link(a,b)->ab,就是上面的变量 打印:0 阅读全文
posted @ 2020-09-04 23:11 朱小勇 阅读(372) 评论(0) 推荐(0)
摘要: 在.pro里 DESTDIR = C:/Users/Administrator/Desktop/myctk2017/CtkFramework/third_libs/plugin/libs 阅读全文
posted @ 2020-09-03 16:02 朱小勇 阅读(2325) 评论(0) 推荐(0)
摘要: this->setWindowFlags(Qt::WindowCloseButtonHint|Qt::WindowMinimizeButtonHint); 阅读全文
posted @ 2020-09-01 16:37 朱小勇 阅读(686) 评论(0) 推荐(0)
摘要: var str = text_name.replace(/\ +/g,""); str = str.replace(/[\r\n]/g,""); console.log(str); 阅读全文
posted @ 2020-09-01 13:53 朱小勇 阅读(1546) 评论(0) 推荐(0)
摘要: 1、代码 void QJInterface::closeEvent(QCloseEvent *event) { QDialog* log = new QDialog(this); log->setObjectName("log"); log->setStyleSheet("#log{backgrou 阅读全文
posted @ 2020-08-30 00:41 朱小勇 阅读(1148) 评论(0) 推荐(0)
摘要: 1、官网 https://sourceforge.net/projects/qroundprogressbar/ 2、下载并加入到工程 3、在ui里拖一个widget,提升为QRoundProgressBar 4、直接使用 ui->round_1->setFormat("%v"); ui->roun 阅读全文
posted @ 2020-08-30 00:15 朱小勇 阅读(840) 评论(0) 推荐(0)
上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 133 下一页