随笔分类 -  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 阅读(3673) 评论(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 阅读(442) 评论(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 阅读(70) 评论(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 阅读(60) 评论(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 阅读(106) 评论(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 阅读(138) 评论(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 阅读(104) 评论(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 阅读(783) 评论(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 阅读(346) 评论(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 阅读(62) 评论(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 阅读(72) 评论(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 阅读(150) 评论(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 阅读(44) 评论(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 阅读(206) 评论(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 阅读(15) 评论(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 阅读(29) 评论(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 阅读(173) 评论(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 阅读(34) 评论(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 阅读(96) 评论(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 阅读(32) 评论(0) 推荐(0)

1