I am aware of how to convert a QVariant
containing a QString
to a QString
:
How can I convert QVariant to QString and vice versa in Qt?
What I want to ask is how do I convert ANY QVariant
into a QString
? i.e. even if my QVariant
object has an int
, is there an easy way to convert it to QString
?