into

inline fun <T> QVariant_?.into(): T?

Extract the content of a QVariant in a type-safe manner

Return

value of the QVariant or null


inline fun <T> QVariant_?.into(defValue: T): T

Extract the content of a QVariant in a type-safe manner

Return

value of the QVariant or defValue

Parameters

defValue

default value if the type does not match or no value is found