mirror of
https://github.com/mappu/miqt.git
synced 2025-01-08 00:28:36 +00:00
14 lines
263 B
C++
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);
|
|
}
|