Qt5 提供了两个类用于串口操作,分别是:QSerialPort和QSerialPortInfo。 最基本的操作示例代码如下: 1 #ifndef DIALOG_H 2 #define DIALOG_H 3 4 #include <QDialog> 5 6 #include <QDebug> 7 #
分类:
其他好文 时间:
2016-03-05 22:03:06
阅读次数:
218
重要的话写在前面~~通过今晚的实验,知道了EBO是不能随便release的~~~一直不要release就可以了,否则vao会失效 Display.h #ifndef DISPLAYWIDGET_H #define DISPLAYWIDGET_H #include <QGLWidget> #inclu
分类:
其他好文 时间:
2016-03-02 00:13:38
阅读次数:
646
1、 类似如下代码: 1 QString fileName = QFileDialog::getOpenFileName( 2 this, 3 tr("Open File"), 4 NULL,// ".", 5 tr("*.*")); 2、
分类:
其他好文 时间:
2016-02-29 16:36:51
阅读次数:
174
获取系统图标: QFileIconProvider icon_provider; QIcon icon = icon_provider.icon(QFileIconProvider::Folder); 其中可以获取的系统图标有: Constant Value QFileIconProvider::C
分类:
其他好文 时间:
2016-02-27 17:50:11
阅读次数:
182
mydialog.h 文件 #ifndef MYDIALOG_H #define MYDIALOG_H #include <QDialog> class QLCDNumber; class QTimer; class MyDialog : public QDialog { Q_OBJECT publ
分类:
其他好文 时间:
2016-02-26 13:49:31
阅读次数:
1209
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QRadioButton> #include <QButtonGroup> class MainWindow : public QMainWindow
分类:
其他好文 时间:
2016-02-22 23:30:01
阅读次数:
341
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QLabel> #include <QPixmap> #include <QImage> #include <QScrollArea> class M
分类:
其他好文 时间:
2016-02-22 23:29:40
阅读次数:
333
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QProgressBar> class MainWindow : public QMainWindow { Q_OBJECT public: Main
分类:
其他好文 时间:
2016-02-22 22:16:22
阅读次数:
1137