13

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.

cbuchart
  • 10,847
  • 9
  • 53
  • 93
smallB
  • 16,662
  • 33
  • 107
  • 151

1 Answers1

30

QVariant has a toStringList() method.

Etienne de Martel
  • 34,692
  • 8
  • 91
  • 111