摘要: 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) 编辑