CS_DECLARE_METATYPE documentation issue

Discuss anything related to product development
Post Reply
Posts: 123
Joined: Thu Jun 11 2020 12:18 pm

CS_DECLARE_METATYPE documentation issue

Post by seasoned_geek »

/home/roland/sf_projects/redbug/src/settingsbreakpoint.h:32:42: error: extra ‘;’ [-Werror=pedantic]
32 | CS_DECLARE_METATYPE( SettingsBreakpoint );
| ^

Go here:


scroll to bottom and see this

Declaring the Type

In order to use the Message class with the property system or in a QVariant, it must be added as a MetaType. This will provide the ability to query the QVariant system for the name, which would be "Message".

To add this class to the QVariant system invoke the CS_DECLARE_METATYPE() macro in the header file where it is defined, after the class declaration.

Posts: 281
Joined: Sat Apr 04 2015 2:32 am

Re: CS_DECLARE_METATYPE documentation issue

Post by barbara »

Thanks, we will correct the docs.

Post Reply