上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 33 下一页
摘要: 头文件加入这两句: #include <QPoint> //坐标点 #include <QMouseEvent> //鼠标事件 public: // 移动窗口的变量; bool m_isPressed; //鼠标按下标志 QPoint m_startMovePos; //开始移动的坐标点 prote 阅读全文
posted @ 2022-07-29 20:11 雾枫 阅读(662) 评论(0) 推荐(0) 编辑
摘要: 代码: void DefinedTitleBar::mouseReleaseEvent(QMouseEvent* event) //鼠标释放事件 { m_isPressed = false; qDebug() << QString::fromLocal8Bit("鼠标释放:") << endl << 阅读全文
posted @ 2022-07-29 20:01 雾枫 阅读(50) 评论(0) 推荐(0) 编辑
摘要: QPixmap DefinedTitleBar::PixmapToRound(QPixmap& src, int radius) //将方形图片转为圆形,在label上进行显示 { if (src.isNull()) { return QPixmap(); } QSize size(2 * radi 阅读全文
posted @ 2022-07-28 14:46 雾枫 阅读(627) 评论(0) 推荐(0) 编辑
摘要: #include <QtXml/QDomDocument> //xml 文件操作类 QString _getXmlSproFile_path = _getObject_path; //文件路径 QString _xmlfile = _getXmlSproFile_path + "/" + "ASG_ 阅读全文
posted @ 2022-07-26 16:52 雾枫 阅读(754) 评论(0) 推荐(0) 编辑
摘要: 基本操作 阅读全文
posted @ 2022-07-24 16:33 雾枫 阅读(15) 评论(0) 推荐(0) 编辑
摘要: #include <opencv.hpp> #include <iostream> using namespace cv; using namespace std; int main() { Mat src = imread("D:\\MyPicture\\a_5.jpg",1); //第一个参数: 阅读全文
posted @ 2022-07-23 12:38 雾枫 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 原文链接 阅读全文
posted @ 2022-07-21 15:32 雾枫 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1、要被传递的原 Qlist二维数组 : 2、函数定义 3、使用函数 (直接将二维数组名传递进去) 阅读全文
posted @ 2022-07-20 14:40 雾枫 阅读(1967) 评论(0) 推荐(0) 编辑
摘要: //将序列添加图表中 chart->addSeries(lineSeries0); //添加坐标轴到图表中 //chart->addAxis(xAxis, Qt::AlignBottom); //chart->addAxis(yAxis, Qt::AlignLeft); chart->setAxis 阅读全文
posted @ 2022-07-18 22:41 雾枫 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 上代码 _axis_X->setTickCount(10); //设置分割数(当前无效) _axis_X->setMinorTickCount(2); //每个分割数的再分割(当前无效)/ _chart->addSeries(_lineSeries); _chart->createDefaultAx 阅读全文
posted @ 2022-07-15 19:09 雾枫 阅读(407) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 33 下一页