/****************************************************************************
** Meta object code from reading C++ file 'widget.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../../../QtModbus/widget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'widget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.7.0. 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_Widget_t {
QByteArrayData data[14];
char stringdata0[363];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_Widget_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_Widget_t qt_meta_stringdata_Widget = {
{
QT_MOC_LITERAL(0, 0, 6), // "Widget"
QT_MOC_LITERAL(1, 7, 38), // "on_comboBox_BoTeLv_currentInd..."
QT_MOC_LITERAL(2, 46, 0), // ""
QT_MOC_LITERAL(3, 47, 4), // "arg1"
QT_MOC_LITERAL(4, 52, 39), // "on_comboBox_DataBit_currentIn..."
QT_MOC_LITERAL(5, 92, 36), // "on_comboBox_Port_currentIndex..."
QT_MOC_LITERAL(6, 129, 42), // "on_comboBox_JiaoYanBit_curren..."
QT_MOC_LITERAL(7, 172, 39), // "on_comboBox_StopBit_currentIn..."
QT_MOC_LITERAL(8, 212, 22), // "on_BTN_OpenPLC_clicked"
QT_MOC_LITERAL(9, 235, 23), // "on_BTN_ClosePLC_clicked"
QT_MOC_LITERAL(10, 259, 20), // "on_BTN_Write_clicked"
QT_MOC_LITERAL(11, 280, 31), // "on_radioButton_XianQuan_clicked"
QT_MOC_LITERAL(12, 312, 30), // "on_radioButton_JiCunQI_clicked"
QT_MOC_LITERAL(13, 343, 19) // "on_BTN_Read_clicked"
},
"Widget\0on_comboBox_BoTeLv_currentIndexChanged\0"
"\0arg1\0on_comboBox_DataBit_currentIndexChanged\0"
"on_comboBox_Port_currentIndexChanged\0"
"on_comboBox_JiaoYanBit_currentIndexChanged\0"
"on_comboBox_StopBit_currentIndexChanged\0"
"on_BTN_OpenPLC_clicked\0on_BTN_ClosePLC_clicked\0"
"on_BTN_Write_clicked\0"
"on_radioButton_XianQuan_clicked\0"
"on_radioButton_JiCunQI_clicked\0"
"on_BTN_Read_clicked"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_Widget[] = {
// content:
7, // revision
0, // classname
0, 0, // classinfo
11, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
// slots: name, argc, parameters, tag, flags
1, 1, 69, 2, 0x08 /* Private */,
4, 1, 72, 2, 0x08 /* Private */,
5, 1, 75, 2, 0x08 /* Private */,
6, 1, 78, 2, 0x08 /* Private */,
7, 1, 81, 2, 0x08 /* Private */,
8, 0, 84, 2, 0x08 /* Private */,
9, 0, 85, 2, 0x08 /* Private */,
10, 0, 86, 2, 0x08 /* Private */,
11, 0, 87, 2, 0x08 /* Private */,
12, 0, 88, 2, 0x08 /* Private */,
13, 0, 89, 2, 0x08 /* Private */,
// slots: parameters
QMetaType::Void, QMetaType::QString, 3,
QMetaType::Void, QMetaType::QString, 3,
QMetaType::Void, QMetaType::QString, 3,
QMetaType::Void, QMetaType::QString, 3,
QMetaType::Void, QMetaType::QString, 3,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
0 // eod
};
void Widget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
Widget *_t = static_cast<Widget *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->on_comboBox_BoTeLv_currentIndexChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 1: _t->on_comboBox_DataBit_currentIndexChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 2: _t->on_comboBox_Port_currentIndexChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 3: _t->on_comboBox_JiaoYanBit_currentIndexChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 4: _t->on_comboBox_StopBit_currentIndexChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 5: _t->on_BTN_OpenPLC_clicked(); break;
case 6: _t->on_BTN_ClosePLC_clicked(); break;
case 7: _t->on_BTN_Write_clicked(); break;
case 8: _t->on_radioButton_XianQuan_clicked(); break;
case 9: _t->on_radioButton_JiCunQI_clicked(); break;
case 10: _t->on_BTN_Read_clicked(); break;
default: ;
}
}
}
const QMetaObject Widget::staticMetaObject = {
{ &QWidget::staticMetaObject, qt_meta_stringdata_Widget.data,
qt_meta_data_Widget, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};
const QMetaObject *Widget::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *Widget::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!strcmp(_clname, qt_meta_stringdata_Widget.stringdata0))
return static_cast<void*>(const_cast< Widget*>(this));
return QWidget::qt_metacast(_clname);
}
int Widget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QWidget::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 11)
qt_static_metacall(this, _c, _id, _a);
_id -= 11;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 11)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 11;
}
return _id;
}
QT_END_MOC_NAMESPACE
没有合适的资源?快使用搜索试试~ 我知道了~
QtModbus通信源码(可供初学者参考)
共45个文件
o:9个
h:8个
cpp:5个
2星 需积分: 48 71 下载量 138 浏览量
2019-03-07
00:36:31
上传
评论 4
收藏 1.61MB RAR 举报
温馨提示
利用libmodbus开发的modbus工具代码。该代码是用qt开发的,绝对可用。
资源推荐
资源详情
资源评论
收起资源包目录
QtModbus通信源码(可供初学者参考).rar (45个子文件)
QtModbus
widget.ui 12KB
QtModbus.pro.user 23KB
widget.cpp 5KB
QtModbus.pro 536B
main.cpp 175B
widget.h 1KB
bin
Makefile 22KB
release
Makefile 22KB
release
moc_widget.cpp 6KB
libmodbus-5.dll 155KB
QtModbus.exe 52KB
widget.o 51KB
main.o 2KB
moc_widget.o 11KB
Makefile.Debug 34KB
debug
libmodbus-5.dll 155KB
ui_widget.h 13KB
Makefile.Release 35KB
Makefile.Debug 32KB
debug
moc_widget.cpp 3KB
debug
Makefile 22KB
release
Makefile.Debug 32KB
debug
moc_widget.cpp 3KB
QtModbus.exe 1.27MB
widget.o 491KB
main.o 483KB
moc_widget.o 405KB
ui_widget.h 5KB
Makefile.Release 32KB
.qmake.stash 676B
libmodbus-5.dll 155KB
QtModbus.exe 1.27MB
widget.o 491KB
main.o 483KB
moc_widget.o 405KB
libmodbus-5.dll 155KB
ui_widget.h 5KB
Makefile.Release 32KB
.qmake.stash 676B
include
modbus-version.h 2KB
modbus-rtu.h 1KB
modbus.h 11KB
modbus-tcp.h 1KB
lib
libmodbus-5.lib 18KB
libmodbus-5.dll 155KB
共 45 条
- 1
资源评论
- 小柯南文案江山2021-06-24别人不知道 我没法用啊
唯一色彩CDF
- 粉丝: 13
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功