Converting QVariant to a QStringList
-
08-03-2021 - |
Pergunta
I have stored QStringList
in a QVariant
variable while calling setData
function. Now I'd like to restore this data from QVariant
variable. How to do it?
Edit: I tried convert but I don't seem to understand how it works.
Solução
QVariant
has a toStringList()
method.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow