随笔分类 - Qt
摘要:Qt QVariant qvariant.h /**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** C
阅读全文
摘要:1、qobject_impl.h /**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact
阅读全文
摘要:Qt源码地址 https://download.qt.io/ https://download.qt.io/archive/qt/ https://code.qt.io/cgit/qt/qt5.git ###########################
阅读全文
摘要:QThread Header: #include <QThread> qmake: QT += core Inherits: QObject Public Types enum Priority { IdlePriority, LowestPriority, LowPriority, NormalP
阅读全文
摘要:QAbstractState Header: #include <QAbstractState> qmake: QT += core Since: Qt 4.6 Inherits: QObject Inherited By: QFinalState, QHistoryState, and QStat
阅读全文
摘要:opencv Mat QImage if (imgParam.channels() == 3) { cv::cvtColor(imgParam, rgb, CV_BGR2RGB); img = QImage((const uchar*)(rgb.data), rgb.cols, rgb.rows,
阅读全文
摘要:QVector /**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https:/
阅读全文
摘要:1、自动计算施工时间 2、自动生成进度计划 3、动态模拟进度计划 解析ifc,基于ifc的施工进度规划、基于ifc的施工模拟、基于BIM ifc的机械臂模拟....... 从19年8月份以后,就再也没开发这个程序了,这两天论文需要,又打开该项目,增加了一些功能,很开心,感谢之前写好的架构,这次开发很
阅读全文
摘要:QDateTime 增加时间 QDateTime finalDate1 = QDateTime::fromString("2021-09-17 00:11:00", "yyyy-MM-dd HH:mm:ss"); QDateTime endTime = finalDate1.addMSecs(120
阅读全文
摘要:使用自己的三维建模软件绘制塔吊 if (towerPanelObj==nullptr) { towerPanelObj = new TowerPanel(); towerPanelObj->setWindowTitle(u8"塔吊参数"); QIcon iconApp; iconApp.addFil
阅读全文
摘要:Qt QSplitter布局 #include <QSplitter> QVBoxLayout *verticalLayoutMain; QSplitter *splitterMain = nullptr; QSplitter *splitterLeft = nullptr; QSplitter *
阅读全文
摘要:Error: Failed to connect database.Driver not loaded Driver not loaded Qt打包好的程序报错:Error: Failed to connect database.Driver not loaded Driver not loaded
阅读全文
摘要:QTableWidget清空并删除所有行 while (tableWidget->rowCount()>0) { tableWidget->removeRow(0); } #####################################
阅读全文
摘要:SQLite - 判断表是否存在 SELECT count(*) FROM sqlite_master WHERE type="table" AND name = "表名"; 查询的结果 qlite> sqlite> SELECT count(*) FROM sqlite_master WHERE
阅读全文
摘要:很久没用过了,今天又用了 QSplitter *splitterMain; QTextEdit *textleft; QSplitter *splitterRight; QTextEdit *textUp; QTextEdit *textBottom; QVBoxLayout *vLayout=ne
阅读全文
摘要:QTime /**************************************************************************** ** ** Copyright (C) 2017 The Qt Company Ltd. ** Copyright (C) 2016
阅读全文
摘要:Qt 整合SDL2报错 1>qtmaind.lib(qtmain_win.obj) : error LNK2019: 无法解析的外部符号 main,该符号在函数 WinMain 中被引用1>ifctest1.exe : fatal error LNK1120: 1 个无法解析的外部命令 解决方法一:
阅读全文
摘要:QCryptographicHash Header: #include <QCryptographicHash>qmake: QT += coreSince: Qt 4.3 注意:在5.9之前的Qt版本中,当被要求生成SHA3时,qcryptographicshash实际上计算了Keccak。如果您
阅读全文
摘要:Qt double float保留两位小数 double p9_d = P9_Value.toDouble(); float p9_f = P9_Value.toFloat(); QString p9_str2 = QString::number(p9_f, 'f', 2); P9_Value =
阅读全文
摘要:QVideoWidget类提供了一个小部件,它显示由媒体对象生成的视频。 将QVideoWidget附加到qmediao对象允许它显示该媒体对象的视频或图像输出。QVideoWidget通过在其构造函数中传递指向qmediao对象的指针来连接到媒体对象,并通过销毁QVideoWidget来分离。 p
阅读全文