上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 33 下一页
摘要: 代码 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)
摘要: 原文链接 阅读全文
posted @ 2022-08-11 17:44 雾枫 阅读(70) 评论(0) 推荐(0)
摘要: while (!_copy_stl.atEnd()) //QFile _copy_stl("C:/test.txt") { _readline<< _copy_stl.readLine(); //read } 阅读全文
posted @ 2022-08-03 20:14 雾枫 阅读(514) 评论(0) 推荐(0)
摘要: 头文件加入这两句: #include <QPoint> //坐标点 #include <QMouseEvent> //鼠标事件 public: // 移动窗口的变量; bool m_isPressed; //鼠标按下标志 QPoint m_startMovePos; //开始移动的坐标点 prote 阅读全文
posted @ 2022-07-29 20:11 雾枫 阅读(875) 评论(0) 推荐(0)
摘要: 代码: void DefinedTitleBar::mouseReleaseEvent(QMouseEvent* event) //鼠标释放事件 { m_isPressed = false; qDebug() << QString::fromLocal8Bit("鼠标释放:") << endl << 阅读全文
posted @ 2022-07-29 20:01 雾枫 阅读(70) 评论(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 雾枫 阅读(800) 评论(0) 推荐(0)
摘要: #include <QtXml/QDomDocument> //xml 文件操作类 QString _getXmlSproFile_path = _getObject_path; //文件路径 QString _xmlfile = _getXmlSproFile_path + "/" + "ASG_ 阅读全文
posted @ 2022-07-26 16:52 雾枫 阅读(861) 评论(0) 推荐(1)
摘要: 基本操作 阅读全文
posted @ 2022-07-24 16:33 雾枫 阅读(19) 评论(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 雾枫 阅读(124) 评论(0) 推荐(0)
摘要: 原文链接 阅读全文
posted @ 2022-07-21 15:32 雾枫 阅读(240) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 33 下一页