Details
-
Suggestion
-
Resolution: Unresolved
-
P4: Low
-
None
-
6.8.0
Description
It would be nice if QIcon:pixmap() always returns requested size pixmap. At present It may honor it or return smaller size, which is very confusing as general assumption is that you get what you request.
Current documentation does says that it may return smaller size but it is not what is desired, If possible can we make it always return the desired size after consideration of device pixel ratio?
May be we can have one Enum to consider it
enum PixmapTransformation { TransformExactlyRequestedSize, TrasnformDefault }; So that user can call the way he wants Something like this: QIcon::pixmap(QSize size, PixmapTransformation t = TransformExactlyRequestedSize);