![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
qt
JoYER_cc
相信梦想,相信技术。
展开
-
Qt学习合集
QT-QWidgt-QThread_JoYER_cc的博客-CSDN博客Qt-QString-字符集_JoYER_cc的博客-CSDN博客Qt-QLabel_JoYER_cc的博客-CSDN博客Qt-QLabel_JoYER_cc的博客-CSDN博客Qt-QPushButton_JoYER_cc的博客-CSDN博客Qt-QLineEdit_JoYER_cc的博客-CSDN博客Qt-QObjet结点_JoYER_cc的博客-CSDN博客QT-Layout_JoYER_cc的博客-C原创 2022-04-22 15:18:49 · 122 阅读 · 0 评论 -
Qt-Xps项目
ui_xps.h/********************************************************************************** Form generated from reading UI file 'xps.ui'**** Created by: Qt User Interface Compiler version 5.14.2**** WARNING! All changes made in this file will be lo原创 2022-04-22 15:11:03 · 436 阅读 · 0 评论 -
Qt-QPainter
画图,处理图像testqimage.cpp#include "testqimage.h"#include <QPainter>TestQImage::TestQImage(QWidget* parent) : QWidget(parent){ ui.setupUi(this); img = QImage(1280, 720, QImage::Format_RGBA8888); //填入颜色 img.fill(QColor(255, 0, 0, 200)); //遍历原创 2022-04-21 21:55:41 · 208 阅读 · 0 评论 -
Qt-QEvent
按键事件#include "qeventtest.h"#include <QDebug>#include<QEvent>#include <QKeyEvent>QEventTest::QEventTest(QWidget* parent) : QWidget(parent){ ui.setupUi(this); //this->setMouseTracking(true);}bool QEventTest::event(QEvent* ev原创 2022-04-21 17:41:43 · 358 阅读 · 0 评论 -
Qt-QMainWindow
main.cpp#include "qmenutest.h"#include <QtWidgets/QApplication>#include "menuwidget.h" int main(int argc, char *argv[]){ QApplication a(argc, argv); QMenuTest w; w.show(); /* MenuWidget win; win.show();*/ return a.exec原创 2022-04-21 13:23:45 · 371 阅读 · 0 评论 -
Qt-QDialog
main.cpp#include "qdialogtest.h"#include <QtWidgets/QApplication>#include <QDebug>#include "xmessagebox.h"#include "progressbar.h"#include "testprogressbar.h"int main(int argc, char *argv[]){ QApplication a(argc, argv); Pro原创 2022-04-20 15:23:35 · 455 阅读 · 0 评论 -
Qt-QTreeWidget
ui_qtreewidgettest.h/********************************************************************************** Form generated from reading UI file 'qtreewidgettest.ui'**** Created by: Qt User Interface Compiler version 5.14.2**** WARNING! All changes made原创 2022-04-18 17:26:05 · 525 阅读 · 0 评论 -
Qt-QTableWidget
ui_tablewidgettest.h/********************************************************************************** Form generated from reading UI file 'qtablewidgettest.ui'**** Created by: Qt User Interface Compiler version 5.14.2**** WARNING! All changes mad原创 2022-04-17 16:03:47 · 457 阅读 · 0 评论 -
Qt-QListWidget
qlistwidgettest.h#pragma once#include <QtWidgets/QWidget>#include "ui_qlistwidgettest.h"class QListWidgetTest : public QWidget{ Q_OBJECTpublic: QListWidgetTest(QWidget *parent = Q_NULLPTR);public slots: void Click(); void原创 2022-04-16 12:01:22 · 725 阅读 · 0 评论 -
Qt-QSlider
main.cpp#include "qslidertest.h"#include <QtWidgets/QApplication>int main(int argc, char *argv[]){ QApplication a(argc, argv); QSliderTest w; w.show(); return a.exec();}qslider.h#pragma once#include <QtWidgets/QWid.原创 2022-04-15 18:53:22 · 464 阅读 · 0 评论 -
Qt-QComboBox
qcomboxtext.h#pragma once#include <QtWidgets/QWidget>#include "ui_qcomboxtest.h"class QComBoxTest : public QWidget{ Q_OBJECTpublic: QComBoxTest(QWidget *parent = Q_NULLPTR);public slots: void Click(); void Act(int index);原创 2022-04-15 14:21:26 · 269 阅读 · 0 评论 -
Qt-QRadioButton
qradiobuttontest.h#pragma once#include <QtWidgets/QWidget>#include "ui_qradiobuttontest.h"class QRadioButtonTest : public QWidget{ Q_OBJECTpublic: QRadioButtonTest(QWidget *parent = Q_NULLPTR);public slots: void Save();priva.原创 2022-04-15 11:19:26 · 394 阅读 · 0 评论 -
Qt-QCheckBox
qcheckbox.h#pragma once#include <QtWidgets/QMainWindow>#include "ui_qcheckboxtest.h"class QCheckBoxTest : public QMainWindow{ Q_OBJECTpublic: QCheckBoxTest(QWidget *parent = Q_NULLPTR);public slots: void Click(bool check);原创 2022-04-15 10:10:05 · 857 阅读 · 0 评论 -
QT-Layout
QVBoxLayout不是一个Widget,目的是控件的大小和位置。sizeHint()推荐尺寸,重载进行修改尺寸,返回Qsiye。或者通过函数setMinimumSize和setMaximumSize进行设置最大最小值。QSizePolicy::PolicyFlagGrowFlagExpandFlagShrinkFlagIgnoreFlag拼接之后有:四种Layoutui_myqt1.h...原创 2022-04-14 16:32:26 · 716 阅读 · 0 评论 -
Qt-QObjet结点
//当项目复杂到一定程度时对各个组件结点进行处理#include "widget.h"#include "ui_widget.h"#include <QDebug>#include <iostream>using namespace std;static QObject *PrintName(QObject *obj){ if(!obj) { return NULL; } qDebug()<<obj-.原创 2022-04-14 11:47:15 · 352 阅读 · 0 评论 -
Qt-QLineEdit
ui_myqt.h/********************************************************************************** Form generated from reading UI file 'myqt.ui'**** Created by: Qt User Interface Compiler version 5.14.2**** WARNING! All changes made in this file will be原创 2022-04-14 10:22:07 · 482 阅读 · 0 评论 -
Qt-QPushButton
设置槽函数 void Pressed() { qDebug() << "pressed"; } void Released() { qDebug() << "released"; }设置快捷方式 ui.shotPushButton->setShortcut(tr("X")); //设置shotPushButton快捷键方式 ui.shotPushButton->原创 2022-04-13 15:06:12 · 600 阅读 · 0 评论 -
Qt-QLabel
main.cpp#include "myqt.h"#include <QtWidgets/QApplication>#include <QtWidgets>//#include <QDebug>//#include <iostream>//#include <windows.h>using namespace Qt;using namespace std;int main(int argc, char *argv[]){原创 2022-04-13 10:14:39 · 249 阅读 · 0 评论 -
Qt-QString-字符集
/*字符集ASCII 7位 128个字符 一般b7作奇偶校验ISO-8859-1 扩展ASCII 128-255拉丁字母ANSI 多字节字符集 0-127:1个字节代表1个字符 2个字节表示一个字符 GB2312 6763常用汉字 GBK 扩展GB2312 21003个汉字 UTF-8 变长编码方式 1字节 0xxxxxxx 2字节 110xxxxx 10xxxxxx 3字节 1110xxxx 10xxxxxx 10xxxxxx 4字节 11110x.原创 2022-04-11 16:30:31 · 937 阅读 · 0 评论 -
QT-QWidgt-QThread
main.cpp//#include "myqt.h"#include <QtWidgets/QApplication>#include <QtWidgets>#include "XWidget.h"#include "XThread.h"//QWidget* w = NULL; //QWidget声明XWidget* w = NULL;int main(int argc, char *argv[]){ QApplication a(argc, ar原创 2022-04-11 12:14:53 · 451 阅读 · 0 评论