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.

有帮助吗?

解决方案

QVariant has a toStringList() method.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top