• 大小: 804KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-07-04
  • 语言: 其他
  • 标签: Qt  

资源简介

还有一篇博客,希望能分享点东西, 直接百度搜"Qt实现GUI的二进制文件读写操作(源码分析+工程打包+测试例子)"

资源截图

代码片段和文件信息

/****************************************************************************
** meta object code from reading C++ file ‘mainwindow.h‘
**
** Created by: The Qt meta object Compiler version 67 (Qt 5.4.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include “../src/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.4.2. 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[5];
    char stringdata[34];
};
#define QT_MOC_LITERAL(idx ofs len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len \
    qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t stringdata) + 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 8) // “openFile“
QT_MOC_LITERAL(2 20 0) // ““
QT_MOC_LITERAL(3 21 8) // “saveFile“
QT_MOC_LITERAL(4 30 3) // “CKS“

    }
    “MainWindow\0openFile\0\0saveFile\0CKS“
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MainWindow[] = {

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

 // slots: name argc parameters tag flags
       1    0   29    2 0x08 /* Private */
       3    0   30    2 0x08 /* Private */
       4    0   31    2 0x08 /* Private */

 // slots: parameters
    QmetaType::Void
    QmetaType::Void
    QmetaType::Int

       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);
        switch (_id) {
        case 0: _t->openFile(); break;
        case 1: _t->saveFile(); break;
        case 2: { int _r = _t->CKS();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        default: ;
        }
    }
}

const Qmetaobject MainWindow::staticmetaobject = {
    { &QMainWindow::staticmetaobject qt_meta_stringdata_MainWindow.data
      qt_meta_data_MainWindow  qt_static_metacall Q_NULLPTR Q_NULLPTR}
};


const Qmetaobject *MainWindow::metaobject() const
{
    return Qobject::d_ptr->metaobject ? Qobject::d_ptr->dynamicmetaobject() : &staticmetaobject;
}

void *MainWindow::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname qt_m

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-02-11 13:31  Qt_readwrite_demo\
     目录           0  2018-02-11 13:31  Qt_readwrite_demo\build-Qt_readwrite_demo-Desktop_Qt_5_4_2_GCC_32bit-Debug\
     文件      837119  2018-02-11 11:36  Qt_readwrite_demo\build-Qt_readwrite_demo-Desktop_Qt_5_4_2_GCC_32bit-Debug\ITECH_bin
     文件       68946  2018-02-11 11:34  Qt_readwrite_demo\build-Qt_readwrite_demo-Desktop_Qt_5_4_2_GCC_32bit-Debug\Makefile
     文件      178576  2018-02-11 11:34  Qt_readwrite_demo\build-Qt_readwrite_demo-Desktop_Qt_5_4_2_GCC_32bit-Debug\main.o
     文件      818468  2018-02-11 11:36  Qt_readwrite_demo\build-Qt_readwrite_demo-Desktop_Qt_5_4_2_GCC_32bit-Debug\mainwindow.o
     文件        3651  2018-02-11 11:34  Qt_readwrite_demo\build-Qt_readwrite_demo-Desktop_Qt_5_4_2_GCC_32bit-Debug\moc_mainwindow.cpp
     文件      209008  2018-02-11 11:34  Qt_readwrite_demo\build-Qt_readwrite_demo-Desktop_Qt_5_4_2_GCC_32bit-Debug\moc_mainwindow.o
     文件       16237  2018-02-11 11:34  Qt_readwrite_demo\build-Qt_readwrite_demo-Desktop_Qt_5_4_2_GCC_32bit-Debug\qrc_resource.cpp
     文件        7928  2018-02-11 11:34  Qt_readwrite_demo\build-Qt_readwrite_demo-Desktop_Qt_5_4_2_GCC_32bit-Debug\qrc_resource.o
     文件      134231  2017-07-05 14:27  Qt_readwrite_demo\out.bin
     目录           0  2018-02-11 13:31  Qt_readwrite_demo\src\
     文件       18792  2018-02-11 11:34  Qt_readwrite_demo\src\QtStudyRoad.pro.user
     文件         389  2018-01-30 17:38  Qt_readwrite_demo\src\Qt_readwrite_demo.pro
     文件       18709  2018-02-11 11:34  Qt_readwrite_demo\src\Qt_readwrite_demo.pro.user
     文件         264  2018-02-07 14:45  Qt_readwrite_demo\src\main.cpp
     文件        6764  2018-02-11 13:33  Qt_readwrite_demo\src\mainwindow.cpp
     文件         514  2018-02-11 10:10  Qt_readwrite_demo\src\mainwindow.h
     目录           0  2018-02-11 13:31  Qt_readwrite_demo\src\res\
     文件        1637  2012-09-24 10:18  Qt_readwrite_demo\src\res\file-open.png
     文件         998  2012-09-24 12:25  Qt_readwrite_demo\src\res\file-save.png
     文件         183  2012-09-24 12:25  Qt_readwrite_demo\src\resource.qrc

评论

共有 条评论