[Interest] Queued signals lost in 5.15.0 (works in 5.12.5) (Windows)

Alexander Dyagilev alervdvcw at gmail.com
Sat Sep 26 23:29:59 CEST 2020


Well, let me not to use it please, i want my app to continue to work lol.

On 9/26/2020 6:43 PM, Thiago Macieira wrote:
> On Saturday, 26 September 2020 07:53:23 PDT Alexander Dyagilev wrote:
>> template <class T>
>> inline void qRegisterMyMetaType(const char *name)
>> {
>>       if (QMetaType::type(name) == QMetaType::UnknownType)
>>           qRegisterMetaType<T>(name);
>> }
> Better implementation:
>
> template <class T>
> inline void qRegisterMyMetaType(const char *name)
> {
>      Q_UNUSED(name);
>      qRegisterMetaType<T>();
> }
>
> #define Q_REGISTER_MY_METATYPE Q_DECLARE_METATYPE
>
> This checks that whether the type is already registered without making a
> function call.


More information about the Interest mailing list