OSSIA
Open Scenario System for Interactive Application
invoke.hpp
1 #pragma once
2 
3 #include <QMetaObject>
4 
5 namespace ossia::qt
6 {
7 
8 template <typename T, typename Fun>
9 inline void run_async(T* self, Fun&& fun)
10 {
11  QMetaObject::invokeMethod(self, std::forward<Fun>(fun), Qt::QueuedConnection);
12 }
13 
14 }