上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: std::string test_str = "year,mon,day,hh"; std::vector res = splitwithstr(test_str, ','); for (int i=0; i splitwithstr(std::string &str,char ch) { std::string tmpstr = str+ch; std::vector res;... 阅读全文
posted @ 2019-10-21 19:46 Truman001 阅读(3914) 评论(0) 推荐(0) 编辑
摘要: QScrollBar *vScrollBar = m_pLogListWidget->verticalScrollBar(); if (vScrollBar != NULL) { vScrollBar->setValue(vScrollBar->maximum()); } 阅读全文
posted @ 2019-10-21 19:40 Truman001 阅读(1505) 评论(0) 推荐(0) 编辑
摘要: 下面两种方法均可让对话框的问号按钮去掉,如果其中一种不生效,可更换另一种 1 方法一 2 方法二 阅读全文
posted @ 2019-10-21 19:39 Truman001 阅读(3769) 评论(0) 推荐(0) 编辑
摘要: 当更改完Qt的界面控件大小时,如果没有更新,可调用下列函数进行刷新界面 1 void QWidget::update() 2 void QWidget::repaint() 3 void QWidget::showNormal() 4 void resize(const QSize &) 例:thi 阅读全文
posted @ 2019-10-21 19:37 Truman001 阅读(5345) 评论(0) 推荐(0) 编辑
摘要: 1 如何查看自己电脑上opencv版本 2 阅读全文
posted @ 2019-10-06 16:14 Truman001 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1 添加头文件#include <thread> 2 使用全局函数作为线程函数 3 使用类成员函数作为线程函数 4 使用lambda表达式作为线程函数 结果如下: 5 leetcode练习 题目描述: 阅读全文
posted @ 2019-08-30 17:17 Truman001 阅读(840) 评论(0) 推荐(0) 编辑
摘要: 待添加 阅读全文
posted @ 2019-08-30 12:38 Truman001 阅读(182) 评论(0) 推荐(0) 编辑
摘要: QString dir_str = "E:\CodeTest"; // 检查目录是否存在,若不存在则新建 QDir dir; if (!dir.exists(dir_str)) { bool res = dir.mkpath(dir_str); qDebug() << "新建目录是否成功" << r 阅读全文
posted @ 2019-08-29 15:11 Truman001 阅读(7455) 评论(2) 推荐(1) 编辑
摘要: 界面如下: 软件源码:https://github.com/Mr-jiayunfei/qt_code.git 阅读全文
posted @ 2019-08-29 15:08 Truman001 阅读(1199) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/jwk000/p/3560086.html 阅读全文
posted @ 2019-08-28 14:42 Truman001 阅读(214) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页