会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
RedWetPlace
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
19
20
21
22
23
24
25
26
27
···
33
下一页
2022年8月12日
QT——设置QLineEdit设置小数位数,末位是0的,把0去掉
摘要: 代码 QRegExp rx; rx.setPattern("(\\.){0,1}0+$"); ui.lineEdit_3->setText(QString("%1").arg(QString::number(_data_min, 'f', 5).toDouble(), 0, 'f', -1).rep
阅读全文
posted @ 2022-08-12 16:46 雾枫
阅读(1192)
评论(0)
推荐(0)
2022年8月11日
QT——关于qt的析构流程
摘要: 原文链接
阅读全文
posted @ 2022-08-11 17:44 雾枫
阅读(70)
评论(0)
推荐(0)
2022年8月3日
QT——通过while以一行一行的读取文件所有内容
摘要: while (!_copy_stl.atEnd()) //QFile _copy_stl("C:/test.txt") { _readline<< _copy_stl.readLine(); //read }
阅读全文
posted @ 2022-08-03 20:14 雾枫
阅读(514)
评论(0)
推荐(0)
2022年7月29日
Qt——自定义标题栏——重写标题栏和鼠标事件,移动窗口
摘要: 头文件加入这两句: #include <QPoint> //坐标点 #include <QMouseEvent> //鼠标事件 public: // 移动窗口的变量; bool m_isPressed; //鼠标按下标志 QPoint m_startMovePos; //开始移动的坐标点 prote
阅读全文
posted @ 2022-07-29 20:11 雾枫
阅读(875)
评论(0)
推荐(0)
Qt——自定义标题栏——鼠标坐标点(相对于桌面左上角,相对于软件左上角)
摘要: 代码: void DefinedTitleBar::mouseReleaseEvent(QMouseEvent* event) //鼠标释放事件 { m_isPressed = false; qDebug() << QString::fromLocal8Bit("鼠标释放:") << endl <<
阅读全文
posted @ 2022-07-29 20:01 雾枫
阅读(70)
评论(0)
推荐(0)
2022年7月28日
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 雾枫
阅读(800)
评论(0)
推荐(0)
2022年7月26日
Qt_——关联xml文件(获取xml文件里的节点数据)
摘要: #include <QtXml/QDomDocument> //xml 文件操作类 QString _getXmlSproFile_path = _getObject_path; //文件路径 QString _xmlfile = _getXmlSproFile_path + "/" + "ASG_
阅读全文
posted @ 2022-07-26 16:52 雾枫
阅读(861)
评论(0)
推荐(1)
2022年7月24日
Qt——Qtabwidget
摘要: 基本操作
阅读全文
posted @ 2022-07-24 16:33 雾枫
阅读(19)
评论(0)
推荐(0)
2022年7月23日
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 雾枫
阅读(124)
评论(0)
推荐(0)
2022年7月21日
QT——获取指定文件下的所有文件名
摘要: 原文链接
阅读全文
posted @ 2022-07-21 15:32 雾枫
阅读(240)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
···
33
下一页
公告