随笔分类 -  Qt

上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要:QDir #include <QDir> Public Types enum Filter { Dirs, AllDirs, Files, Drives, ..., CaseSensitive } flags Filters enum SortFlag { Name, Time, Size, Typ 阅读全文
posted @ 2022-07-09 20:28 西北逍遥 阅读(443) 评论(0) 推荐(0)
摘要:绘制ifc构件外轮廓 void VCWidget::drawOuterCurve(QPainter& mainPainter) { QPen routePen; routePen.setColor(QColor(0, 125, 255)); routePen.setWidth(4); mainPai 阅读全文
posted @ 2022-06-28 15:46 西北逍遥 阅读(49) 评论(0) 推荐(0)
摘要:pyqt查看安装目录 import PyQt5 print(PyQt5.__file__) ############################ 阅读全文
posted @ 2022-06-26 14:18 西北逍遥 阅读(153) 评论(0) 推荐(0)
摘要:绘制位置 for (int k=0;k<drawIndexRoutePoints.size();k++) { QVector<QPoint> drawRoutePoints = drawIndexRoutePoints.at(k); for (QPoint indexPoint : drawRout 阅读全文
posted @ 2022-06-25 19:37 西北逍遥 阅读(41) 评论(0) 推荐(0)
摘要:QPainter 绘制点 #include <QPainter> void QPainter::drawPoint(int x, int y) This is an overloaded function. Draws a single point at position (x, y). ##### 阅读全文
posted @ 2022-06-19 19:20 西北逍遥 阅读(303) 评论(0) 推荐(0)
摘要:#include <QCheckBox> Properties tristate : bool 11 properties inherited from QAbstractButton 59 properties inherited from QWidget 1 property inherited 阅读全文
posted @ 2022-06-16 19:41 西北逍遥 阅读(186) 评论(0) 推荐(0)
摘要:QWindow #include <QWindow> Public Types enum AncestorMode { ExcludeTransients, IncludeTransients } enum Visibility { Windowed, Minimized, Maximized, F 阅读全文
posted @ 2022-06-13 22:01 西北逍遥 阅读(392) 评论(0) 推荐(0)
摘要:一时疏忽,直接在xshell远程桌面运行pyqt程序了,报了此错误 (wind_2022) admin-01@admin-01:~/Anaconda3/project_liao_20220523$ (wind_2022) admin-01@admin-01:~/Anaconda3/project_l 阅读全文
posted @ 2022-06-11 23:25 西北逍遥 阅读(5263) 评论(1) 推荐(0)
摘要:QMatrix4x4 #include <QMatrix4x4> Public Functions QMatrix4x4() QMatrix4x4(const float *values) QMatrix4x4(float m11, float m12, float m13, float m14, 阅读全文
posted @ 2022-06-09 12:50 西北逍遥 阅读(815) 评论(0) 推荐(0)
摘要:QMatrix #include <QMatrix> Public Functions QMatrix() QMatrix(qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy) QMatrix(QMatrix &&other) 阅读全文
posted @ 2022-06-08 22:22 西北逍遥 阅读(370) 评论(0) 推荐(0)
摘要:QString转 wchar_t wchar_t* QString2Wchar(QString qStr) { return (wchar_t*)reinterpret_cast<const wchar_t *>(qStr.utf16()); } ################### 阅读全文
posted @ 2022-06-06 11:15 西北逍遥 阅读(286) 评论(0) 推荐(0)
摘要:QHostInfo Header: #include <QHostInfo> Public Functions QHostInfo(int id = -1) QHostInfo(const QHostInfo &other) ~QHostInfo() QList<QHostAddress> addr 阅读全文
posted @ 2022-06-05 21:30 西北逍遥 阅读(151) 评论(0) 推荐(0)
摘要:QColor QColor() QColor(Qt::GlobalColor color) QColor(int r, int g, int b, int a = ...) QColor(QRgb color) QColor(QRgba64 rgba64) QColor(const QString 阅读全文
posted @ 2022-05-10 06:56 西北逍遥 阅读(1832) 评论(0) 推荐(0)
摘要:QBrush QBrush() QBrush(Qt::BrushStyle style) QBrush(const QColor &color, Qt::BrushStyle style = Qt::SolidPattern) QBrush(Qt::GlobalColor color, Qt::Br 阅读全文
posted @ 2022-05-09 02:11 西北逍遥 阅读(637) 评论(0) 推荐(0)
摘要:qt布局测试 //dockWidget_log scrollAreaLogDock = new QScrollArea(dockWidget_log); scrollAreaLogDock->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSiz 阅读全文
posted @ 2022-05-08 12:49 西北逍遥 阅读(37) 评论(0) 推荐(0)
摘要:QFile #include <QFile> QFile file("in.txt"); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) return; while (!file.atEnd()) { QByteArray line = 阅读全文
posted @ 2022-05-07 07:58 西北逍遥 阅读(321) 评论(0) 推荐(0)
摘要:塔吊花车移动计算 void TowerPanel::slotMoveSlider(int sliderValue) { slider_length = sliderValue*1.0f; hook_position_x = center_x*(-0.0f) + slider_length*cos(a 阅读全文
posted @ 2022-05-06 20:40 西北逍遥 阅读(43) 评论(0) 推荐(0)
摘要:连接redis数据库日志 void Redis_Project2::slotOnConnectRedisButtonClick() { db_address_redis = this->lineEdit_address_redis->text(); db_port_redis = this->lin 阅读全文
posted @ 2022-04-30 21:09 西北逍遥 阅读(187) 评论(0) 推荐(0)
摘要:无法解析的外部符号 "public: virtual struct QMetaObject const * __cdecl PTSData::metaObject(void)const " (?met class IfcData : public QObject { //Q_OBJECT } 解决办 阅读全文
posted @ 2022-04-16 17:55 西北逍遥 阅读(1214) 评论(1) 推荐(0)
摘要:C++绘制点云 osg::Geode* pcd_geode = new osg::Geode(); //几何体 osg::Geometry* pcd_geometry = new osg::Geometry(); for (int k = 0; k < list_dall_data.size(); 阅读全文
posted @ 2022-04-16 17:51 西北逍遥 阅读(113) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页