随笔分类 -  QT

1
摘要:报如下错误 arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '7'. Cannot find EGLConfig, returning null config Unable to find an X11 visual wh 阅读全文
posted @ 2023-03-24 18:03 thomas_blog 阅读(3050) 评论(2) 推荐(0) 编辑
摘要:编译安装 源码下载地址 https://download.qt.io/archive/qt/ 配置参数 ./configure \ -verbose \ -opensource \ -release \ -shared \ -confirm-license \ -make libs \ -nomak 阅读全文
posted @ 2022-12-05 18:59 thomas_blog 阅读(383) 评论(0) 推荐(0) 编辑
摘要:#include "widget.h" #include "ui_widget.h" #include <QPicture> #include <QPainter> Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widg 阅读全文
posted @ 2022-08-05 15:08 thomas_blog 阅读(60) 评论(0) 推荐(0) 编辑
摘要:#include "widget.h" #include "ui_widget.h" #include <QPainter> Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget) { ui->setupUi(th 阅读全文
posted @ 2022-08-05 13:28 thomas_blog 阅读(52) 评论(0) 推荐(0) 编辑
摘要:Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget) { ui->setupUi(this); /* 绘图设备 专门为平台做了显示的优化 */ QPixmap pixmap(300, 300); pixmap.f 阅读全文
posted @ 2022-08-04 22:24 thomas_blog 阅读(102) 评论(0) 推荐(0) 编辑
摘要:#include "widget.h" #include "ui_widget.h" #include <QDebug> Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget) { ui->setupUi(this 阅读全文
posted @ 2022-08-04 17:26 thomas_blog 阅读(125) 评论(0) 推荐(0) 编辑
摘要:void paintEvent(QPaintEvent *event) override { QPainter painter(this); painter.drawEllipse(QPoint(100, 100), 50, 50); /* 移动画家 */ painter.translate(QPo 阅读全文
posted @ 2022-08-04 17:05 thomas_blog 阅读(94) 评论(0) 推荐(0) 编辑
摘要:void paintEvent(QPaintEvent *event) override { QPainter painter(this); painter.drawEllipse(QPoint(100, 100), 50, 50); //设置抗锯齿 效率较低 painter.setRenderHi 阅读全文
posted @ 2022-08-04 16:59 thomas_blog 阅读(772) 评论(0) 推荐(0) 编辑
摘要:#ifndef WIDGET_H #define WIDGET_H #include <QWidget> #include <QPainter> QT_BEGIN_NAMESPACE namespace Ui { class Widget; } QT_END_NAMESPACE class Widg 阅读全文
posted @ 2022-08-04 08:19 thomas_blog 阅读(326) 评论(0) 推荐(0) 编辑
摘要:#include "widget.h" #include "ui_widget.h" Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget) { ui->setupUi(this); /* 安装事件过滤器 */ u 阅读全文
posted @ 2022-08-03 23:41 thomas_blog 阅读(51) 评论(0) 推荐(0) 编辑
摘要:#ifndef MYLABEL_H #define MYLABEL_H #include <QWidget> #include <QDebug> #include <QMouseEvent> #include <QEvent> #include <QLabel> namespace Ui { cla 阅读全文
posted @ 2022-08-03 22:32 thomas_blog 阅读(58) 评论(0) 推荐(0) 编辑
摘要:#ifndef MYLABEL_H #define MYLABEL_H #include <QWidget> #include <QDebug> #include <QMouseEvent> #include <QLabel> namespace Ui { class MyLabel; } clas 阅读全文
posted @ 2022-08-03 22:03 thomas_blog 阅读(136) 评论(0) 推荐(0) 编辑
摘要:#ifndef MYBUTTON_H #define MYBUTTON_H #include <QWidget> #include <QDebug> #include <QPushButton> namespace Ui { class MyButton; } class MyButton : pu 阅读全文
posted @ 2022-08-03 21:30 thomas_blog 阅读(31) 评论(0) 推荐(0) 编辑
摘要:#include "widget.h" #include "ui_widget.h" #include <QMovie> Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget) { ui->setupUi(this 阅读全文
posted @ 2022-08-03 14:34 thomas_blog 阅读(175) 评论(0) 推荐(0) 编辑
摘要:![](https://img2022.cnblogs.com/blog/1747317/202208/1747317-20220803140022646-1342714597.png) ![](https://img2022.cnblogs.com/blog/1747317/202208/1747317-20220803140035735-680190620.png) 阅读全文
posted @ 2022-08-03 14:01 thomas_blog 阅读(8) 评论(0) 推荐(0) 编辑
摘要:#include "widget.h" #include "ui_widget.h" #include <QDebug> #include <QDialog> #include "mywidget.h" Widget::Widget(QWidget *parent) : QWidget(parent 阅读全文
posted @ 2022-08-03 08:16 thomas_blog 阅读(24) 评论(0) 推荐(0) 编辑
摘要:#include "mainwindow.h" #include "ui_mainwindow.h" #include <QDockWidget> #include <QTextEdit> MainWindow::MainWindow(QWidget *parent) : QMainWindow(p 阅读全文
posted @ 2022-08-02 23:10 thomas_blog 阅读(161) 评论(0) 推荐(0) 编辑
摘要:#ifndef WIDGET_H #define WIDGET_H #include <QWidget> QT_BEGIN_NAMESPACE namespace Ui { class Widget; } QT_END_NAMESPACE class Widget : public QWidget 阅读全文
posted @ 2022-08-01 22:06 thomas_blog 阅读(25) 评论(0) 推荐(0) 编辑
摘要:#include "widget.h" #include "ui_widget.h" #include <QDebug> Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget) { ui->setupUi(this 阅读全文
posted @ 2022-08-01 20:46 thomas_blog 阅读(89) 评论(0) 推荐(0) 编辑
摘要:#include "widget.h" #include "ui_widget.h" #include "mypushbutton.h" Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget) { ui->setu 阅读全文
posted @ 2022-08-01 18:52 thomas_blog 阅读(21) 评论(0) 推荐(0) 编辑

1
点击右上角即可分享
微信分享提示