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

J-P Nurmi jpnurmi at gmail.com
Sun Feb 15 17:46:06 CET 2009


On Sun, Feb 15, 2009 at 5:33 PM, Jeff Schiller <codedread at gmail.com> wrote:

> 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?


Actually it was using the implicit QVariant(bool) constructor. The private
constructor was added to prevent this undesired behavior. You can still use
QVariant::fromValue().


>
>
> Also, what's the reason that mingw was added to the Qt 4.5 release?
>
>
Sorry, what do you mean?

--
J-P Nurmi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090215/403fe427/attachment.html 


More information about the Qt-interest-old mailing list