Function qt_core::q_variant_set_value
source · pub unsafe fn q_variant_set_value(
v: impl CastInto<Ref<QVariant>>,
t: impl CastInto<Ref<QVariant>>
)
Expand description
Sets the contents of the given variant to a copy of the value with the specified template type T
.
Calls C++ function: void qVariantSetValue(QVariant& v, const QVariant& t)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for void qVariantSetValue(QVariant &variant, const T &value)
:
Sets the contents of the given variant to a copy of the value with the specified template type T
.
This function is equivalent to QVariant::setValue(value).
Note: This function was provided as a workaround for MSVC 6 which did not support member template functions. It is advised to use the other form in new code.
See also QVariant::setValue().