会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
RedWetPlace
博客园
首页
新随笔
联系
管理
订阅
07 2022 档案
Qt——自定义标题栏——重写标题栏和鼠标事件,移动窗口
摘要:头文件加入这两句: #include <QPoint> //坐标点 #include <QMouseEvent> //鼠标事件 public: // 移动窗口的变量; bool m_isPressed; //鼠标按下标志 QPoint m_startMovePos; //开始移动的坐标点 prote
阅读全文
posted @
2022-07-29 20:11
雾枫
阅读(893)
评论(0)
推荐(0)
Qt——自定义标题栏——鼠标坐标点(相对于桌面左上角,相对于软件左上角)
摘要:代码: void DefinedTitleBar::mouseReleaseEvent(QMouseEvent* event) //鼠标释放事件 { m_isPressed = false; qDebug() << QString::fromLocal8Bit("鼠标释放:") << endl <<
阅读全文
posted @
2022-07-29 20:01
雾枫
阅读(83)
评论(0)
推荐(0)
QT—— 将方形图片转为圆形,在label上进行显示
摘要:QPixmap DefinedTitleBar::PixmapToRound(QPixmap& src, int radius) //将方形图片转为圆形,在label上进行显示 { if (src.isNull()) { return QPixmap(); } QSize size(2 * radi
阅读全文
posted @
2022-07-28 14:46
雾枫
阅读(825)
评论(0)
推荐(0)
Qt_——关联xml文件(获取xml文件里的节点数据)
摘要:#include <QtXml/QDomDocument> //xml 文件操作类 QString _getXmlSproFile_path = _getObject_path; //文件路径 QString _xmlfile = _getXmlSproFile_path + "/" + "ASG_
阅读全文
posted @
2022-07-26 16:52
雾枫
阅读(897)
评论(0)
推荐(1)
Qt——Qtabwidget
摘要:基本操作
阅读全文
posted @
2022-07-24 16:33
雾枫
阅读(20)
评论(0)
推荐(0)
OpenCV——入门代码
摘要:#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
雾枫
阅读(138)
评论(0)
推荐(0)
QT——获取指定文件下的所有文件名
摘要:原文链接
阅读全文
posted @
2022-07-21 15:32
雾枫
阅读(242)
评论(0)
推荐(0)
QT——Qlist二维数组作为参数传递给函数
摘要:1、要被传递的原 Qlist二维数组 : 2、函数定义 3、使用函数 (直接将二维数组名传递进去)
阅读全文
posted @
2022-07-20 14:40
雾枫
阅读(2240)
评论(0)
推荐(0)
Qt——chart数据是一条直线时,不显示,解决办法
摘要://将序列添加图表中 chart->addSeries(lineSeries0); //添加坐标轴到图表中 //chart->addAxis(xAxis, Qt::AlignBottom); //chart->addAxis(yAxis, Qt::AlignLeft); chart->setAxis
阅读全文
posted @
2022-07-18 22:41
雾枫
阅读(554)
评论(0)
推荐(0)
Qt——使用Qchart时,不能显示直线,解决办法
摘要:上代码 _axis_X->setTickCount(10); //设置分割数(当前无效) _axis_X->setMinorTickCount(2); //每个分割数的再分割(当前无效)/ _chart->addSeries(_lineSeries); _chart->createDefaultAx
阅读全文
posted @
2022-07-15 19:09
雾枫
阅读(558)
评论(0)
推荐(0)
Qt——VS中提升widget为QChartView时,报错,并且报很多错误,解决办法
摘要:我懒得写
阅读全文
posted @
2022-07-15 10:18
雾枫
阅读(391)
评论(0)
推荐(0)
qt——删除文件或文件夹
摘要:懒得写了
阅读全文
posted @
2022-07-13 16:01
雾枫
阅读(415)
评论(0)
推荐(0)
Qt——向Qfile文件里写数据
摘要:QByteArray _bcontent = _content.toUtf8(); _config.write(_bcontent); _config.close(); }
阅读全文
posted @
2022-07-11 18:10
雾枫
阅读(221)
评论(0)
推荐(0)
Qt——修改可执行文件的图标
摘要:我就懒得写了
阅读全文
posted @
2022-07-11 16:27
雾枫
阅读(73)
评论(0)
推荐(0)
Qt+——xml读取任意父节点,下的子节点的属性内容
摘要:for (int i = 0; i < _module_List.count(); i++) { //qDebug() << "\n" << QString::fromLocal8Bit(" 第 : ") << i + 1 << QString::fromLocal8Bit("个 build 节点
阅读全文
posted @
2022-07-10 09:25
雾枫
阅读(801)
评论(0)
推荐(0)
公告