You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://doc.qt.io/qt-5/qmetaobject.html#invokeMethod
I need to call invokeMethod from a non-GUI thread to trigger an object's slot in the GUI thread. The recommended method seems to be to use that object's meta-object invokeMethod function. However I cannot find this method in the qt_core bindings. What is missing for its implementation?
The text was updated successfully, but these errors were encountered:
We're missing support for the QGenericArgument type, which is constructed in C++ using the Q_ARG macro. It's possible to add support for it for a finite set of types, but it hasn't been done yet.
As a workaround, you can use a queued signal-slot connection (see Signals and Slots Across Threads). When using a queued connection, Qt will automatically invoke slots in the receiver's thread. You can use a signal wrapper type provided by rust-qt to create a sender object.
https://doc.qt.io/qt-5/qmetaobject.html#invokeMethod
I need to call
invokeMethod
from a non-GUI thread to trigger an object's slot in the GUI thread. The recommended method seems to be to use that object's meta-objectinvokeMethod
function. However I cannot find this method in theqt_core
bindings. What is missing for its implementation?The text was updated successfully, but these errors were encountered: