Qt Cannot queue arguments of type 'uint8_t' even with qRegisterMetaType

Viewed 3086

I'm trying to send a queued signal that uses a uint8_t as a parameter.

I get this error:

QObject::connect: Cannot queue arguments of type 'uint8_t'
(Make sure 'uint8_t' is registered using qRegisterMetaType().)

I have added qRegisterMetaType<uint8_t>(); as the first line of main() and I also added Q_DECLARE_METATYPE(uint8_t) to a header that every file includes.

I still get the same error. What's up with that? Is it some weird thing specifically with basic types, because it works fine for my custom classes.

1 Answers
Related