Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

QVariant to int

if myVariant.type() == QVariant.Int:
    value = myVariant.toInt()
elif myVariant.type() == QVariant.QString:
    value = myVariant.toString()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #QVariant #int
ADD COMMENT
Topic
Name
7+1 =