Monthly Archives: April 2010

Storing pointer in QVariant

You can store many types of data into QVariant, like int, string, etc. Also you can store pointers, but only pointers to void (void*). But what happens when you want to set a property of a object to a instance of class, with setProperty, and after that, you want to retrieve that property? QVariant accepts [...]