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

clipboard selection does not offer all mime types available for the content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.2, 6.0.0
    • 5.15.0
    • QPA: Wayland
    • None
    • Linux/Wayland
    • 6c534941a3015ba529dd4a5c153cffa0e94af11a (qt/qtwayland/dev) 51f0466e01df52eb07e589006744f405dfd40bdd (qt/qtwayland/5.15)

    Description

      In https://code.woboq.org/qt5/qtwayland/src/client/qwaylanddatasource.cpp.html#63

      It seems it lacks QInternalMimeData::formatsHelper(mimeData) so that appliation/x-qt-image is expanded to the mime type that QImage supports.

      This causes KDE bug https://bugs.kde.org/show_bug.cgi?id=422860

      Where
      auto data = new QMimeData(); data->setImageData(mSavePixmap.toImage());
      Does not advertise the other mime type Qt can convert the image to.

      An example workaround is available at https://invent.kde.org/graphics/spectacle/-/merge_requests/31

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            meven Méven Car
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes