Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133527

It would be nice if QIcon::Pixmap() always returns requested size

    XMLWordPrintable

Details

    • All

    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);

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes