> -----Original Message----- > From: Interest <[email protected]> On Behalf Of Tom > Isaacson > Sent: Monday, 14 January 2019 11:05 AM > To: [email protected] > Subject: [Interest] Q_ENUM and qRegisterMetaType() > > I thought replacing Q_DECLARE_METATYPE with Q_ENUM removed the > need to call qRegisterMetaType() as well, but having done so I'm now getting > an error when I call emit(). Have I misunderstood this?
Not sure if it's exactly the same issue, but if you're using an enum from another class in an invokable function (for example), you need to use Q_DECLARE_METATYPE: https://bugreports.qt.io/browse/QTBUG-58454?focusedCommentId=440585&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-440585 > > Tom Isaacson > > _______________________________________________ Interest mailing list [email protected] https://lists.qt-project.org/listinfo/interest
