Storing pointer in QVariant
Posted by admin on April 23, 2010
1 comment
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 [...]