随笔分类 - QT
摘要:JDK Java Downloads | Oracle SDK Download Android Studio & App Tools - Android Developers (google.cn) https://www.androiddevtools.cn/ NDK https://devel
阅读全文
摘要:#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QTimerEvent> QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_N
阅读全文
摘要:// 模态对话框 QDialog * dlog1 = new QDialog(this); dlog1->resize(200, 100); dlog1->exec(); // 非模态对话框 QDialog * dlog2 = new QDialog(this); dlog2->resize(200
阅读全文
摘要:ui 代码 MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); ui->actionnew->setIcon(QIcon("D:\\QT
阅读全文
摘要:#include "mainwindow.h" #include "ui_mainwindow.h" #include <QDockWidget> #include <QLabel> #include <QMenuBar> #include <QPushButton> #include <QStat
阅读全文
摘要:尝试了一下午终于可以在linux环境下,调用conda的环境了,这个是跑深度学习模型的基础环境。 直接进入正题: 根据上一篇文章,在ubuntu 20.04环境下,安装好QT。 配置QT编译器的路径 网上有资料涉及,但是写的不是很清楚,不方便实现。 include <Python.h>然后开始编程,
阅读全文
摘要:下载地址:https://download.qt.io 找到下载链接资源页:https://download.qt.io/archive/qt/ 编译配置 看readme文件,按步骤操作,命令直接复制粘贴,没有修改 Linux, Mac: cd <path>/<source_package> ./c
阅读全文
摘要:文件目录 Teacher.h #ifndef TEACHER_H #define TEACHER_H #include <QObject> class Teacher : public QObject { Q_OBJECT public: explicit Teacher(QObject *pare
阅读全文
摘要:pro工程文件 # QT包含的模块 QT += core gui # >=4,包含widgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++11 # You can make your code fail to comp
阅读全文