/****************************************************************************
** Meta object code from reading C++ file 'mythread.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include <memory>
#include "../../Qthread/mythread.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QVector>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mythread.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.14.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
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Genrerate_t {
QByteArrayData data[7];
char stringdata0[51];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_Genrerate_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_Genrerate_t qt_meta_stringdata_Genrerate = {
{
QT_MOC_LITERAL(0, 0, 9), // "Genrerate"
QT_MOC_LITERAL(1, 10, 9), // "sendArray"
QT_MOC_LITERAL(2, 20, 0), // ""
QT_MOC_LITERAL(3, 21, 12), // "QVector<int>"
QT_MOC_LITERAL(4, 34, 4), // "list"
QT_MOC_LITERAL(5, 39, 7), // "recvNum"
QT_MOC_LITERAL(6, 47, 3) // "num"
},
"Genrerate\0sendArray\0\0QVector<int>\0"
"list\0recvNum\0num"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_Genrerate[] = {
// content:
8, // revision
0, // classname
0, 0, // classinfo
2, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
1, // signalCount
// signals: name, argc, parameters, tag, flags
1, 1, 24, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
5, 1, 27, 2, 0x0a /* Public */,
// signals: parameters
QMetaType::Void, 0x80000000 | 3, 4,
// slots: parameters
QMetaType::Void, QMetaType::Int, 6,
0 // eod
};
void Genrerate::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
auto *_t = static_cast<Genrerate *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->sendArray((*reinterpret_cast< QVector<int>(*)>(_a[1]))); break;
case 1: _t->recvNum((*reinterpret_cast< int(*)>(_a[1]))); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
switch (_id) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 0:
switch (*reinterpret_cast<int*>(_a[1])) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 0:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<int> >(); break;
}
break;
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
{
using _t = void (Genrerate::*)(QVector<int> );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Genrerate::sendArray)) {
*result = 0;
return;
}
}
}
}
QT_INIT_METAOBJECT const QMetaObject Genrerate::staticMetaObject = { {
QMetaObject::SuperData::link<QThread::staticMetaObject>(),
qt_meta_stringdata_Genrerate.data,
qt_meta_data_Genrerate,
qt_static_metacall,
nullptr,
nullptr
} };
const QMetaObject *Genrerate::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *Genrerate::qt_metacast(const char *_clname)
{
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_Genrerate.stringdata0))
return static_cast<void*>(this);
return QThread::qt_metacast(_clname);
}
int Genrerate::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QThread::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 2)
qt_static_metacall(this, _c, _id, _a);
_id -= 2;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 2)
qt_static_metacall(this, _c, _id, _a);
_id -= 2;
}
return _id;
}
// SIGNAL 0
void Genrerate::sendArray(QVector<int> _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
struct qt_meta_stringdata_BubbleSort_t {
QByteArrayData data[6];
char stringdata0[49];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_BubbleSort_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_BubbleSort_t qt_meta_stringdata_BubbleSort = {
{
QT_MOC_LITERAL(0, 0, 10), // "BubbleSort"
QT_MOC_LITERAL(1, 11, 8), // "finished"
QT_MOC_LITERAL(2, 20, 0), // ""
QT_MOC_LITERAL(3, 21, 12), // "QVector<int>"
QT_MOC_LITERAL(4, 34, 4), // "list"
QT_MOC_LITERAL(5, 39, 9) // "recvArray"
},
"BubbleSort\0finished\0\0QVector<int>\0"
"list\0recvArray"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_BubbleSort[] = {
// content:
8, // revision
0, // classname
0, 0, // classinfo
2, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
1, // signalCount
// signals: name, argc, parameters, tag, flags
1, 1, 24, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
5, 1, 27, 2, 0x0a /* Public */,
// signals: parameters
QMetaType::Void, 0x80000000 | 3, 4,
// slots: parameters
QMetaType::Void, 0x80000000 | 3, 4,
0 // eod
};
void BubbleSort::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
auto *_t = static_cast<BubbleSort *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->finished((*reinterpret_cast< QVector<int>(*)>(_a[1]))); break;
case 1: _t->recvArray((*reinterpret_cast< QVector<int>(*)>(_a[1]))); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
switch (_id) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 0:
switch (*reinterpret_cast<int*>(_a[1])) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 0:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<int> >(); break;
}
break;
case 1:
switch (*reinterpret_cast<int*>(_a[1])) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 0:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<int> >(); break;
}
break;
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
{
using _t = void (BubbleSort::*)(QVector<int> );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&BubbleSort::finished)) {
*result = 0;
没有合适的资源?快使用搜索试试~ 我知道了~
Qt多线程可视化多线程排序算法演示:冒泡和快排
共14个文件
o:5个
cpp:2个
h:2个
2 下载量 168 浏览量
2024-01-29
17:06:00
上传
评论
收藏 1.15MB RAR 举报
温馨提示
资源描述:基于Qt的可视化界面,编写的冒泡排序和可视化排序的比较算法,通过生成10000个随机数,多线程进行排序比较,可直观看到时间复杂度对程序运行的影响程度。 可以学到的知识:Qt多线程,多进程,冒泡排序算法,基于递归实现的快速排序算法,Qt的可视化界面设计。 适合人群:适合对于多线程,多进程,Qt界面的开发,排序算法等。提供源码,难度较低,适合初学者进行学习。
资源推荐
资源详情
资源评论
收起资源包目录
Qt_thread.rar (14个子文件)
build-Qthread-Desktop_Qt_5_14_2_MinGW_32_bit-Debug
Makefile 33KB
debug
moc_mythread.cpp 14KB
moc_mythread.o 498KB
moc_mainwindow.cpp 4KB
moc_mainwindow.o 476KB
mainwindow.o 741KB
mythread.o 392KB
Qthread.exe 2.34MB
main.o 688KB
moc_predefs.h 14KB
release
Makefile.Release 52KB
ui_mainwindow.h 5KB
Makefile.Debug 52KB
.qmake.stash 1KB
共 14 条
- 1
资源评论
书中藏着宇宙
- 粉丝: 3529
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功