• 大小: 157KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-14
  • 语言: 其他
  • 标签: qt  usblibusb  

资源简介

上位机采用qt技术做界面,用开源libusb做驱动与下位机的usb进行通信,测试良好

资源截图

代码片段和文件信息

/****************************************************************************
** meta object code from reading C++ file ‘mywidget.h‘
**
** Created: Wed May 13 09:40:10 2015
**      by: The Qt meta object Compiler version 63 (Qt 4.8.4)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include “../../myusb/mywidget.h“
#if !defined(Q_MOC_OUTPUT_REVISION)
#error “The header file ‘mywidget.h‘ doesn‘t include ject>.“
#elif Q_MOC_OUTPUT_REVISION != 63
#error “This file was generated using the moc from 4.8.4. 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
static const uint qt_meta_data_myWidget[] = {

 // content:
       6       // revision
       0       // classname
       0    0 // classinfo
       7   14 // methods
       0    0 // properties
       0    0 // enums/sets
       0    0 // constructors
       0       // flags
       1       // signalCount

 // signals: signature parameters type tag flags
      18   10    9    9 0x05

 // slots: signature parameters type tag flags
      41    9    9    9 0x08
      67    9    9    9 0x08
      80    9    9    9 0x08
     111  106    9    9 0x08
     131  106    9    9 0x08
     159  151    9    9 0x08

       0        // eod
};

static const char qt_meta_stringdata_myWidget[] = {
    “myWidget\0\0tmpnum\0SendMessage(char*int)\0“
    “on_pushButton_2_clicked()\0autoScroll()\0“
    “on_pushButton_4_clicked()\0date\0“
    “NumberUpdate(char*)\0DateShowSlot(char*)\0“
    “checked\0on_pushButton_3_toggled(bool)\0“
};

void myWidget::qt_static_metacall(Qobject *_o Qmetaobject::Call _c int _id void **_a)
{
    if (_c == Qmetaobject::InvokemetaMethod) {
        Q_ASSERT(staticmetaobject.cast(_o));
        myWidget *_t = static_cast(_o);
        switch (_id) {
        case 0: _t->SendMessage((*reinterpret_cast< char*(*)>(_a[1]))(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 1: _t->on_pushButton_2_clicked(); break;
        case 2: _t->autoScroll(); break;
        case 3: _t->on_pushButton_4_clicked(); break;
        case 4: _t->NumberUpdate((*reinterpret_cast< char*(*)>(_a[1]))); break;
        case 5: _t->DateShowSlot((*reinterpret_cast< char*(*)>(_a[1]))); break;
        case 6: _t->on_pushButton_3_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    }
}

const QmetaobjectExtraData myWidget::staticmetaobjectExtraData = {
    0  qt_static_metacall 
};

const Qmetaobject myWidget::staticmetaobject = {
    { &QWidget::staticmetaobject qt_meta_stringdata_myWidget
      qt_meta_data_myWidget &staticmetaobjectExtraData }
};

#ifdef Q_NO_DATA_RELOCATION
const Qmetaobject &myWidget::getStaticmetaobject() { return staticmetaObj

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5863  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\Makefile

     文件       7696  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\Makefile.Debug

     文件       7829  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\Makefile.Release

     文件       1349  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\release\main.o

     文件       4053  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\release\moc_mywidget.cpp

     文件       9142  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\release\moc_mywidget.o

     文件       3281  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\release\moc_u2xbtneventmonitor.cpp

     文件       4099  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\release\moc_u2xbtneventmonitor.o

     文件       3715  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\release\moc_u2x_thread.cpp

     文件       4604  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\release\moc_u2x_thread.o

     文件      88064  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\release\myusb.exe

     文件      22452  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\release\mywidget.o

     文件       2914  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\release\u2xbtneventmonitor.o

     文件       4440  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\release\u2x_thread.o

     文件       7994  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\build-myusb-Qt_4_8_4_4_8_4_MinGW-Release\ui_mywidget.h

     文件      25088  2015-05-03 10:12  U2XBtnMst\U2XBtnMst\U2XButton\myusb\installer_x64.exe

     文件      23552  2015-05-03 10:12  U2XBtnMst\U2XBtnMst\U2XButton\myusb\installer_x86.exe

     文件      36550  2012-01-17 09:39  U2XBtnMst\U2XBtnMst\U2XButton\myusb\libusb.a

     文件      42592  2015-05-03 10:12  U2XBtnMst\U2XBtnMst\U2XButton\myusb\libusb0.sys

     文件      67680  2015-05-03 10:12  U2XBtnMst\U2XBtnMst\U2XButton\myusb\libusb0_x86.dll

     文件      17539  2015-05-08 18:11  U2XBtnMst\U2XBtnMst\U2XButton\myusb\libusb_dyn.c

     文件      11879  2015-05-08 18:11  U2XBtnMst\U2XBtnMst\U2XButton\myusb\lusb0_usb.h

     文件        303  2015-05-12 22:54  U2XBtnMst\U2XBtnMst\U2XButton\myusb\main.cpp

     文件       5949  2015-05-11 20:25  U2XBtnMst\U2XBtnMst\U2XButton\myusb\Makefile

     文件       7216  2015-05-11 20:25  U2XBtnMst\U2XBtnMst\U2XButton\myusb\Makefile.Debug

     文件       7349  2015-05-11 20:25  U2XBtnMst\U2XBtnMst\U2XButton\myusb\Makefile.Release

     文件        571  2015-05-13 09:16  U2XBtnMst\U2XBtnMst\U2XButton\myusb\myusb.pro

     文件      22919  2015-05-13 09:40  U2XBtnMst\U2XBtnMst\U2XButton\myusb\myusb.pro.user

     文件      12857  2015-05-13 08:49  U2XBtnMst\U2XBtnMst\U2XButton\myusb\myusb.pro.user.2.6pre1

     文件       3115  2015-05-12 23:25  U2XBtnMst\U2XBtnMst\U2XButton\myusb\mywidget.cpp

............此处省略17个文件信息

评论

共有 条评论