Details
-
Suggestion
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
None
-
None
Description
At this time there is no toIcon() method for QVariant:
We can do this:
QIcon i; QVariant v(i);
but we can't do:
QIcon r = v.toIcon();
And there is many uses cases where it is necessary:
For example I want to save a list of favorites websites into a QSettings (for a navigator project) with their favicon. But QSettings imply to stock the list as a QVariant, however QVariant can stock a QIcon but suprisingly we can't read it ! We can't do var.toIcon() !!! This is not coherent.
I add many links where this function is wanted (use cases):
https://stackoverflow.com/questions/16859082/qvariant-to-qicon-qpixmap-qimage#
http://qaru.site/questions/6696640/derives-from-qsettings-and-store-qicon
https://stackoverflow.com/questions/16614150/derives-from-qsettings-and-store-qicon