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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.15.0
    • Fix Version/s: 5.15.2, 6.0.0
    • Component/s: QPA: Wayland
    • Labels:
      None
    • Platform/s:
      Linux/Wayland
    • Commits:
      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

        For Gerrit Dashboard: QTBUG-87657
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            qt.team.graphics.and.multimedia Qt Graphics Team
            Reporter:
            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