Document QVariantMap with invalid QVariant is disallowed in D-Bus arguments

Invalid QVariant is not allowed in arguments and Qt has a check for
that. However, if an argument is QVariantMap with invalid QVariant,
the application will crash when sending the message, which is an
expected behavior and needs to be documented.

Task-number: QTBUG-130038
Change-Id: I120785b8557afa089b6d12f82680c85505d110b9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Fushan Wen 2024-10-15 18:55:30 +08:00
parent 812f79e75f
commit e1259868de

View File

@ -743,6 +743,9 @@ bool QDBusMessage::isInteractiveAuthorizationAllowed() const
Sets the arguments that are going to be sent over D-Bus to \a arguments. Those
will be the arguments to a method call or the parameters in the signal.
Note that QVariantMap with invalid QVariant as value is not allowed
in \a arguments.
\sa arguments()
*/
void QDBusMessage::setArguments(const QList<QVariant> &arguments)