[Interest] Qt metatypes bug?

Konstantin Shegunov kshegunov at gmail.com
Sat Nov 12 09:25:36 CET 2016


Hi,

On Sat, Nov 12, 2016 at 10:20 AM, Alexander Dyagilev <alervdvcw at gmail.com>
wrote:

> I added new structure and added it as 3d parameters - it stopped working.
>
My best guess is qRegisterMetaType<A::B>("A::B"); should
be qRegisterMetaType<A::B>("B");
If I recall correctly the metatype aliases don't resolve the scope operator.

Another thing you could try is to use a fully qualified name for Q_ARG:
Q_ARG(const A::B &, b)

Kind regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161112/654dfc37/attachment.html>


More information about the Interest mailing list