In python you don't have to worry about types of data,
a = 1234 will make a to be an int, and
b = "abcd" will make b to be a string.
So, the first part of your example would be:
variable = ..........
The second part is a little bit more confusing :S. QVariant doesn't have any "value" method. Maybe I understood you wrong?
Bookmarks