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

setContextMenuPolicy not working on Mobile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.3
    • None
    • Android, iOS/tvOS/watchOS

    Description

      On iOS, I cant change the ContextMenu of a QTextEdit through the function setContextMenuPolicy.

      And overriding the function ContextMenuEvent doesnt work either, as it doesnt seem to be called properly when the policy is left to the default settings - at least from my own tests.

      Original report in the forum: https://forum.qt.io/topic/159474/

      Reproducer:

      int main(int argc, char* argv[])
      {
          QApplication a(argc, argv);
          QTextEdit edit;
          edit.setContextMenuPolicy(Qt::NoContextMenu);
          edit.show();
          return a.exec();
      }
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            brad111 Brad Smith
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes