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

No way to directly set an existing QPixmap to a new QImage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.6.0
    • GUI: Painting
    • None
    • a16a6e6fb3cf9d9c70515d2361bc06c598c27f3f

    Description

      There is no easy way to override an existing QPixmap with a new QImage without incurring the creation cost of a new pixmap with QPixmap::fromImage(). QPixmapData::fromImage() can modify a pixmap in-place, but this isn't accessible via the public API.

      Proposal is to add QPixmap::setImage() to 4.7, and an internal qPixmapSetImage() to 4.6.x.

      Attachments

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

        Activity

          People

            rweather Rhys Weatherley (closed Nokia identity) (Inactive)
            rweather Rhys Weatherley (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes