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

For QImage constructor, add a version where std::function is used for the clean up function

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.15.1
    • GUI: Painting
    • None
    • All

    Description

      I would like to be able to specify a lambda for the clean-up function when creating a QImage.  It would allow much more flexibility for deleting the allocated buffer. something like:

      QImage::QImage(const uchar data, int width, int height, int bytesPerLineQImage::Format format, std::function<void(void*)> )

       

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            doug_rogers Doug Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes