Qt6 incompatibility fixed

This commit is contained in:
Uwe Rathmann 2020-10-23 13:54:27 +02:00
parent 484c0ceec5
commit 205de91dae

View File

@ -272,7 +272,13 @@ void QskMetaFunction::invoke( QObject* object,
}
types[ i ] = parameterTypes[ i - 1 ];
arguments[ i ] = QMetaType::create( types[ i ], argv[ i ] );
arguments[ i ] =
#if QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 )
QMetaType( types[ i ] ).create( argv[ i ] );
#else
QMetaType::create( types[ i ], argv[ i ] );
#endif
}
if ( receiver.isNull() )