[Qt-interest] Using QVariant to store enums and compare them against each other.
MARTIN Pierre
hickscorp at gmail.com
Mon Aug 8 14:27:30 CEST 2011
In my first snippet, i did a typo. The line:
> int const *pVal = &val;
> QVariant const var (t, &pVal);
Should of course read:
> int const *pVal = &val;
> QVariant const var (t, pVal);
This way it's working as it is now in my application, and my questions remain unanswered :)
Sorry for the confusion!
Pierre.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110808/f9f64bef/attachment.html
More information about the Qt-interest-old
mailing list