Use extended type in a QML signal with C++ slot
I created my own C++ type with the macro Q_DECLARE_METATYPE . Now I want to use it in a QML signal with C++ slot. The problem is that I can't use my type in QML, cause it is a invalid signal parameter type . I wanted to create the sinal like this in my QML file:
signal buttonSend(MyType msg)
How can I use C++ extended types as an QML signal argument? How can I import my C++ header to become my object a valid parameter?
Any tip will be very helpful.