随笔分类 - Qt
摘要:Qt QWidget保存为图片 QPixmap pixmap = QPixmap::grabWidget(this); pixmap.save("D://1.jpg","JPG"); ###################################
阅读全文
摘要:Qt绘图面板中的对象拖拽 qdrawwidget.h #ifndef QDRAWWIDGET_H #define QDRAWWIDGET_H #include <QObject> #include <QWidget> #include <QFrame> #include <QPainter> #in
阅读全文
摘要:Qt绘制网格 mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QPainter> #include <QDebug> namespace Ui { class MainWi
阅读全文
摘要:ubuntu中编译好的Qt程序运行 luo@luo-ThinkPad-W540:QtProject$ luo@luo-ThinkPad-W540:QtProject$ cd build-HGD_ES-Desktop_Qt_5_12_0_GCC_64bit-Debug luo@luo-ThinkPad
阅读全文
摘要:ubuntu qt5 编译libqsqlmysql.so 首先确保已经安装了mysql, 然后打开 /opt/Qt5.12.0/5.12.0/Src/qtbase/src/plugins/sqldrivers/mysql 目录查看是否存在 如果存在,进行libmysql.so文件的编译 root@l
阅读全文
摘要:Qt mysql 确保mysql已经安装 luo@luo-ThinkPad-W540:~$ luo@luo-ThinkPad-W540:~$ whereis mysql.h mysql: /usr/bin/mysql /usr/lib/mysql /etc/mysql /usr/include/my
阅读全文
摘要:Error 1> 已启动生成: 项目: HGD_Project_202101, 配置: Debug x64 1> Reading Qt configuration (E:/Qt/Qt5.12.2/5.12.2/msvc2017_64/bin/qmake) 1>HGD_Project_202101.v
阅读全文
摘要:pyqt5 yolov5运行日志 img = img.half() img = img.float()
阅读全文
摘要:anaconda pyqt5 (base) F:\> (base) F:\> (base) F:\>dir 驱动器 F 中的卷是 新加卷 卷的序列号是 12DB-F948 F:\ 的目录 2021/03/31 20:27 <DIR> EclipseCSWorkspace 2021/03/31 19:
阅读全文
摘要:QPainter /**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https:
阅读全文
摘要:realsense d435i qt 2.1863804 -1.0416172 5.268 -0.9421689 -1.1718271 2.25 detection time. (0.346s) 2.1863804 -1.0416172 5.268 -0.94886875 -1.18016 2.26
阅读全文
摘要:save img void CameraProject2021::OnPhotoButtonClick() { if (!cameraMat.empty()) { QString picName = getImgName(); qDebug() << picName; bool isSavePic
阅读全文
摘要:graphPath->addRect(0, 0, rect_width, rect_height);p.drawRect(2, 2, rect_width - 5, rect_height - 4);
阅读全文
摘要:qwidgetresizehandler_p.h /**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/
阅读全文
摘要:DockWidgetArea enum DockWidgetArea { LeftDockWidgetArea = 0x1, RightDockWidgetArea = 0x2, TopDockWidgetArea = 0x4, BottomDockWidgetArea = 0x8, DockWid
阅读全文
摘要:qt windeployqt G:\software\ifc_project_2020\20201120401-debug> G:\software\ifc_project_2020\20201120401-debug>windeployqt ES_ifc_2020.exe G:\software\
阅读全文
摘要:Public Functions QTableWidget(QWidget *parent = nullptr) QTableWidget(int rows, int columns, QWidget *parent = nullptr) virtual ~QTableWidget() QWidge
阅读全文