随笔分类 - C++
摘要:QString char* QString musicStr = "D:/12.mp3|";musicStr.toLatin1().data() ############
阅读全文
摘要:QDir #include <QDir> Public Types enum Filter { Dirs, AllDirs, Files, Drives, ..., CaseSensitive } flags Filters enum SortFlag { Name, Time, Size, Typ
阅读全文
摘要:绘制ifc构件外轮廓 void VCWidget::drawOuterCurve(QPainter& mainPainter) { QPen routePen; routePen.setColor(QColor(0, 125, 255)); routePen.setWidth(4); mainPai
阅读全文
摘要:绘制位置 for (int k=0;k<drawIndexRoutePoints.size();k++) { QVector<QPoint> drawRoutePoints = drawIndexRoutePoints.at(k); for (QPoint indexPoint : drawRout
阅读全文
摘要:osg绘制闭合曲线 osg::TessellationHints* outline_hits1 = new osg::TessellationHints(); outline_hits1->setDetailRatio(0.9f); osg::Geode* outline_geode = new o
阅读全文
摘要:错误C2280 “std::_Hash<std::_Uset_traits<_Kty,std::_Uhash_compare<_Kty,_Hasher,_Keyeq>,_Alloc,false>>::_Hash(const std::_Hash<std::_Uset_traits<_Kty,std:
阅读全文
摘要:严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C1128 节数超过对象文件格式限制: 请使用 /bigobj 进行编译 TeslaManage_2022061901 项目 属性->C/C++ -> 命令行 其它选项 输入:/bigobj ##########################
阅读全文
摘要:QPainter 绘制点 #include <QPainter> void QPainter::drawPoint(int x, int y) This is an overloaded function. Draws a single point at position (x, y). #####
阅读全文
摘要:计算关节夹角 float calculateAngle(float startX,float startY,float startZ, float centerX,float centerY,float centerZ, float endX,float endY,float endZ) { flo
阅读全文
摘要:opencv打开摄像头 #include <opencv2/opencv.hpp> #include <iostream> using namespace cv; using namespace std; int main() { cv::namedWindow("win1", cv::WINDOW
阅读全文
摘要:#include <QCheckBox> Properties tristate : bool 11 properties inherited from QAbstractButton 59 properties inherited from QWidget 1 property inherited
阅读全文
摘要:QWindow #include <QWindow> Public Types enum AncestorMode { ExcludeTransients, IncludeTransients } enum Visibility { Windowed, Minimized, Maximized, F
阅读全文
摘要:一时疏忽,直接在xshell远程桌面运行pyqt程序了,报了此错误 (wind_2022) admin-01@admin-01:~/Anaconda3/project_liao_20220523$ (wind_2022) admin-01@admin-01:~/Anaconda3/project_l
阅读全文
摘要:QMatrix4x4 #include <QMatrix4x4> Public Functions QMatrix4x4() QMatrix4x4(const float *values) QMatrix4x4(float m11, float m12, float m13, float m14,
阅读全文
摘要:QMatrix #include <QMatrix> Public Functions QMatrix() QMatrix(qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy) QMatrix(QMatrix &&other)
阅读全文
摘要:QString转 wchar_t wchar_t* QString2Wchar(QString qStr) { return (wchar_t*)reinterpret_cast<const wchar_t *>(qStr.utf16()); } ###################
阅读全文
摘要:QHostInfo Header: #include <QHostInfo> Public Functions QHostInfo(int id = -1) QHostInfo(const QHostInfo &other) ~QHostInfo() QList<QHostAddress> addr
阅读全文
摘要:C++类型转换 C++ float转int float myFloat {3.14f}; int i1 {(int)myFloat}; int i2 {int(myFloat)}; int i3 {static_cast<int>(myFloat)}; ##################
阅读全文
摘要:实验数据记录 建图开始时间:23:12:18 建图结束时间:23:12:20 A*开始时间:23:12:23 A*结束时间:23:12:23 A*路径节点数量:54 A*路径实际长度:26280.3 A*路径曼哈顿长度:6826.01 RRT开始时间:23:14:38 RRT结束时间:23:14:4
阅读全文
摘要:基于BIM与点云数据的塔吊仿真系统 ###########################
阅读全文