資源簡介
通過幾天的學習,自己也寫了一個串口通信的上位機,比較簡易,希望可以給大家帶來幫助

代碼片段和文件信息
/****************************************************************************
**?meta?object?code?from?reading?C++?file?‘mainwindow.h‘
**
**?Created?by:?The?Qt?meta?object?Compiler?version?67?(Qt?5.5.1)
**
**?WARNING!?All?changes?made?in?this?file?will?be?lost!
*****************************************************************************/
#include?“../../SerialPort/mainwindow.h“
#include?
#include?tatype.h>
#if?!defined(Q_MOC_OUTPUT_REVISION)
#error?“The?header?file?‘mainwindow.h‘?doesn‘t?include?ject>.“
#elif?Q_MOC_OUTPUT_REVISION?!=?67
#error?“This?file?was?generated?using?the?moc?from?5.5.1.?It“
#error?“cannot?be?used?with?the?include?files?from?this?version?of?Qt.“
#error?“(The?moc?has?changed?too?much.)“
#endif
QT_BEGIN_MOC_NAMESPACE
struct?qt_meta_stringdata_MainWindow_t?{
????QByteArrayData?data[6];
????char?stringdata0[89];
};
#define?QT_MOC_LITERAL(idx?ofs?len)?\
????Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len?\
????qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t?stringdata0)?+?ofs?\
????????-?idx?*?sizeof(QByteArrayData))?\
????)
static?const?qt_meta_stringdata_MainWindow_t?qt_meta_stringdata_MainWindow?=?{
????{
QT_MOC_LITERAL(0?0?10)?//?“MainWindow“
QT_MOC_LITERAL(1?11?22)?//?“on_clearButton_clicked“
QT_MOC_LITERAL(2?34?0)?//?““
QT_MOC_LITERAL(3?35?21)?//?“on_sendButton_clicked“
QT_MOC_LITERAL(4?57?21)?//?“on_openButton_clicked“
QT_MOC_LITERAL(5?79?9)?//?“Read_Data“
????}
????“MainWindow\0on_clearButton_clicked\0\0“
????“on_sendButton_clicked\0on_openButton_clicked\0“
????“Read_Data“
};
#undef?QT_MOC_LITERAL
static?const?uint?qt_meta_data_MainWindow[]?=?{
?//?content:
???????7???????//?revision
???????0???????//?classname
???????0????0?//?classinfo
???????4???14?//?methods
???????0????0?//?properties
???????0????0?//?enums/sets
???????0????0?//?constructors
???????0???????//?flags
???????0???????//?signalCount
?//?slots:?name?argc?parameters?tag?flags
???????1????0???34????2?0x08?/*?Private?*/
???????3????0???35????2?0x08?/*?Private?*/
???????4????0???36????2?0x08?/*?Private?*/
???????5????0???37????2?0x08?/*?Private?*/
?//?slots:?parameters
????QmetaType::Void
????QmetaType::Void
????QmetaType::Void
????QmetaType::Void
???????0????????//?eod
};
void?MainWindow::qt_static_metacall(Qobject?*_o?Qmetaobject::Call?_c?int?_id?void?**_a)
{
????if?(_c?==?Qmetaobject::InvokemetaMethod)?{
????????MainWindow?*_t?=?static_cast(_o);
????????Q_UNUSED(_t)
????????switch?(_id)?{
????????case?0:?_t->on_clearButton_clicked();?break;
????????case?1:?_t->on_sendButton_clicked();?break;
????????case?2:?_t->on_openButton_clicked();?break;
????????case?3:?_t->Read_Data();?break;
????????default:?;
????????}
????}
????Q_UNUSED(_a);
}
const?Qmetaobject?MainWindow::staticmetaobject?=?{
????{?&QMainWindow::staticmetaobject?qt_me
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-01-29?12:59??SerialPort\
?????目錄???????????0??2016-01-30?16:34??SerialPort\SerialPort\
?????文件?????????405??2016-01-28?13:49??SerialPort\SerialPort\SerialPort.pro
?????文件???????18729??2016-01-30?16:34??SerialPort\SerialPort\SerialPort.pro.user
?????文件?????????183??2016-01-27?13:35??SerialPort\SerialPort\main.cpp
?????文件????????3394??2016-01-28?14:54??SerialPort\SerialPort\mainwindow.cpp
?????文件?????????591??2016-01-28?14:28??SerialPort\SerialPort\mainwindow.h
?????文件????????6578??2016-01-28?14:19??SerialPort\SerialPort\mainwindow.ui
?????文件????????2282??2016-01-28?13:48??SerialPort\SerialPort\mythread.cpp
?????文件?????????477??2016-01-28?13:49??SerialPort\SerialPort\mythread.h
?????目錄???????????0??2016-01-29?12:59??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\
?????文件???????22391??2016-01-28?13:56??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\Makefile
?????文件???????39733??2016-01-28?13:56??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\Makefile.Debug
?????文件???????39800??2016-01-28?13:56??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\Makefile.Release
?????目錄???????????0??2016-01-29?12:59??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\
?????文件?????1001375??2016-01-28?14:54??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\SerialPort.exe
?????文件??????336433??2016-01-28?14:33??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\main.o
?????文件??????454129??2016-01-28?14:54??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\mainwindow.o
?????文件????????4067??2016-01-28?14:37??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\moc_mainwindow.cpp
?????文件??????190940??2016-01-28?14:37??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\moc_mainwindow.o
?????文件????????4557??2016-01-28?13:05??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\moc_mythread.cpp
?????文件??????183501??2016-01-28?13:05??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\moc_mythread.o
?????文件??????190002??2016-01-28?13:05??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\mythread.o
?????目錄???????????0??2016-01-30?16:35??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\release\
?????文件???????10466??2016-01-28?14:19??SerialPort\build-SerialPort-Desktop_Qt_5_5_1_MinGW_32bit-Debug\ui_mainwindow.h
評論
共有 條評論