1
0
mirror of https://github.com/mappu/miqt.git synced 2025-05-22 11:00:25 +00:00

14 lines
263 B
C++

#include <QMetaObject>
#include <QCoreApplication>
#ifndef _Bool
#define _Bool bool
#endif
#include "_cgo_export.h"
void mainthread_exec(intptr_t cb) {
QMetaObject::invokeMethod(qApp, [=]{
mainthread_exec_handle(cb);
}, Qt::QueuedConnection);
}