[Qt-interest] [qt4.5-rc1] QVariant(void*) made private

Jeff Schiller codedread at gmail.com
Sun Feb 15 16:33:26 CET 2009


I had the following code which worked fine in Qt 4.5 TP1 and Beta:

SomeClass* somePersistentObject = ...;
QAction* theAction = ...;

theAction->setData(somePersistentObject);

However, now that becomes an error in Qt RC1 because QVariant(void*)
has been made private.

What's the right way to pass an arbitrary pointer into a QVariant?

Also, what's the reason that mingw was added to the Qt 4.5 release?

Thanks,
Jeff



More information about the Qt-interest-old mailing list