Hi all,

I am trying to emit a custom object via QObject.Signal from inside a QRunnable.
The object I am trying to emit throws this error:

   TypeError: Value types used on meta functions (including signals)
   need to be registered on meta type: /NameSpace:://NameSpace/::Clip

I tried to trick it by creating a wrapper class like so

|class NodeItem(QtCore.QObject): def __init__(self, node, clip): QtCore.QObject.__init__(self) self.node = node self.clip = clip |

But that crashes the app when I try to emit it from a QRunnable, even though it works i the main thread.

I have tried to find information on how to register meta types but cn only find C++ info about Q_DECLARE_METATYPE.
This does not seem to exist in Python land though?!

Does anybody have any ideas? I’m kinda stuck with this one.

Cheers,
frank

​
--

ohufxLogo 50x50 <http://www.ohufx.com>    
*vfx compositing <http://ohufx.com/compositing.html> | *workflow customisation and consulting <http://ohufx.com/customising.html>* *
                *<http://ohufx.com/compositing.html>*
<http://www.nukepedia.com/nubridge>       
        

Your gateway to over 1,000 free tools... right inside of Nuke <http://www.nukepedia.com/nubridge>

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to