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

Ctrl-V in QTextEdit does not trigger the canInsertFromMimeData() function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.10, 5.15.2
    • GUI: Text handling
    • None
    • Qt 5.12.10, MSVC 2017 x64, Win 10
    • Windows

    Description

      Hi,

      From the doc, when user presses `Ctrl+V` in `QTextEdit`, the `canInsertFromMimeData()` should be called and user could change the paste behavior here. From my application, `Ctrl+V` will simply directly paste the text from clipboard without calling the `canInsertFromMimeData()` function. However, if I click the `Paste` in the right context menu, the `canInsertJFromMimeData()` function will be called always. I think the behaviors of these two methods should be exactly the same.

      It used to work in Qt 5.9.

      Thank you!

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            tamlok tamlok
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes