随笔分类 -  Qt

上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要:QList删除元素 int removeAll(const T &value) void removeAt(int i) void removeFirst() void removeLast() bool removeOne(const T &value) 阅读全文
posted @ 2020-11-30 10:31 西北逍遥 阅读(5814) 评论(0) 推荐(0)
摘要:删除 if (esProjectObj !=nullptr) { delete esProjectObj; esProjectObj = nullptr; } 阅读全文
posted @ 2020-11-23 17:43 西北逍遥 阅读(113) 评论(0) 推荐(0)
摘要:Qt echarts 一定要注意,Qt的版本要在qt5.6及其以上,而且要注意自己的开发环境,(如果你用的vs2015开发,而且开发环境是msvc2015_64),好多版本msvc2015_64是没有QtWebEngine、QtWebEngineCore、QtWebEngineWidgets这几个库 阅读全文
posted @ 2020-11-19 16:24 西北逍遥 阅读(1352) 评论(0) 推荐(1)
摘要:echarts 饼图 <!DOCTYPE html> <html> <head> <base href="<%=basePath%>"> <title>测试</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv= 阅读全文
posted @ 2020-11-19 15:59 西北逍遥 阅读(234) 评论(0) 推荐(0)
摘要:qwebchannel.js /**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Copyright 阅读全文
posted @ 2020-11-18 19:47 西北逍遥 阅读(1770) 评论(0) 推荐(0)
摘要:编译日志 1> 已启动全部重新生成: 项目: ES_project2, 配置: Debug x64 1> Moc'ing es_project2.h... 1> Uic'ing es_project2.ui... 1> Moc'ing essystemconfig.h... 1> Moc'ing e 阅读全文
posted @ 2020-11-09 10:35 西北逍遥 阅读(175) 评论(0) 推荐(0)
摘要:QDateTime lastUpdateTime = QDateTime::currentDateTime(); QString dateTimeStr = lastUpdateTime.toString("yyyy-MM-dd hh:mm:ss"); //QDateTime::fromString 阅读全文
posted @ 2020-11-04 21:31 西北逍遥 阅读(181) 评论(0) 推荐(0)
摘要:QList类是一个提供列表的模板类。 Header: #include <QList> qmake: QT += core Inherited By: QByteArrayList, QItemSelection, QQueue, and QStringList 函数: QList()QList(c 阅读全文
posted @ 2020-10-24 18:06 西北逍遥 阅读(445) 评论(0) 推荐(0)
摘要:多个QDockWidget用程序控制自动切换 qDockWidgetParam->setVisible(true); qDockWidgetParam->raise(); 阅读全文
posted @ 2020-10-15 20:27 西北逍遥 阅读(281) 评论(0) 推荐(0)
摘要:查询的条件控件 //检索字段的返回值类型 QHBoxLayout* horizontalLayout_7 = new QHBoxLayout(); horizontalLayout_7->setSpacing(6); horizontalLayout_7->setObjectName(QString 阅读全文
posted @ 2020-10-13 18:28 西北逍遥 阅读(125) 评论(0) 推荐(0)
摘要:查询数据 //查询数据源 QSqlQuery searchDataSource(ESSystemConfig esSystemConfig,QString sqlParam) {//连接数据库 ESDatabaseCommon esDatabaseCommonObj1; QString databa 阅读全文
posted @ 2020-10-09 15:49 西北逍遥 阅读(220) 评论(0) 推荐(0)
摘要:自定义生成IFC globalID的函数 .h文件 #include <QChar> #include <cstdlib> #include <ctime> QString createGlobalID(); .cpp文件 QString createGlobalID() { QChar chars 阅读全文
posted @ 2020-10-07 11:22 西北逍遥 阅读(270) 评论(0) 推荐(0)
摘要:多个QPushbutton绑定同一个槽函数,槽函数通过sender判断点击的按钮。 int i = 0; QString str("pushButton %1"); QPushButton* pushButton; for (i = 0; i<16; ++i) { pushButton = new 阅读全文
posted @ 2020-09-30 16:37 西北逍遥 阅读(1492) 评论(0) 推荐(0)
摘要:QLineEdit /**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https 阅读全文
posted @ 2020-09-07 19:56 西北逍遥 阅读(237) 评论(0) 推荐(0)
摘要:传输图片 void MainWindow::sendData() { QByteArray Data; QBuffer buffer; buffer.open(QIODevice::ReadWrite); QDataStream out(&Data,QIODevice::ReadWrite); // 阅读全文
posted @ 2020-09-02 14:50 西北逍遥 阅读(255) 评论(0) 推荐(0)
摘要:QDockWidget设置为tab切换形式的,其实就是调用一下 void QMainWindow::tabifyDockWidget(QDockWidget *first, QDockWidget *second)的此方法即可实现。 /******************************** 阅读全文
posted @ 2020-07-06 12:45 西北逍遥 阅读(2056) 评论(0) 推荐(0)
摘要:self.depth_img = cv2.resize(depth_colormap, (640, 480)) self.depth_img = cv2.cvtColor(self.depth_img, cv2.COLOR_BGR2RGB) self.depth_showImage = QtGui. 阅读全文
posted @ 2020-04-24 19:58 西北逍遥 阅读(712) 评论(0) 推荐(0)
摘要:pyuic5 -o pyqt_2020042201.py pyqt_2020042201.ui pyrcc5 -o img_resources_rc.py img_resources.qrc 阅读全文
posted @ 2020-04-22 18:00 西北逍遥 阅读(283) 评论(0) 推荐(0)
摘要:国内站点:[https://gitee.com/feiyangqingyun](https://gitee.com/feiyangqingyun) 国际站点:[https://github.com/feiyangqingyun](https://github.com/feiyangqingyun) 阅读全文
posted @ 2020-03-10 09:20 西北逍遥 阅读(398) 评论(2) 推荐(0)
摘要:缩放图片 阅读全文
posted @ 2019-11-24 19:06 西北逍遥 阅读(379) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页