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

QTextEdit as single widget will open context menu only once

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.9.0, 5.9.1, 5.9.2
    • None
    • OS: Windows 10 Pro x64

      RAM: 8GB

      Qt: 5.9.X Opensource Shared from qt archives

      MSVC2017 v.15.4.0

      Windows 10 SDK (10.0.15063.0)

    Description

      Hi all,

      the following code will prevent to open the context menu a second time:

       

      #include <QApplication>
      #include <QTextEdit>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QTextEdit w;
          w.show();
      
          return a.exec();
      }
      

      I've tested it with QSpinBox and QLineEdit which will work flawlessly. QPlainTextEdit won't work either.

      It doesn't matter if you compile via MinGW or MSVC17.

      So I assume it's something correlated to QAbstractScrollArea which denies the upcomming context menu events?!

      Kind regards,
      Mike

      Attachments

        Issue Links

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

          Activity

            People

              frederik Frederik Gladhorn
              lachrymology Mike
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes