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

QTextEdit context menu only opens once

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.5.1, 5.6.0
    • None
    • Linux, Mac OS

    Description

      Run the following program and follow these steps:

      1. Open the context menu (RMB or CTRL-Click on Mac)
      2. Click away from the menu but still over the widget to close it.
      3. Open the context menu again. The menu does not appear.
      4. Click on another window, then back over the QTextEdit to reset focus.
      5. Opening the context menu works again.

      #include <QApplication>
      #include <QTextEdit>
      int main( int argc, char** argv )

      { QApplication app(argc, argv); QTextEdit wid; wid.setPlainText( "Line 1\nLine 2\nLine 3" ); wid.show(); return app.exec(); }

      Attachments

        Issue Links

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

          Activity

            People

              peppe Giuseppe D'Angelo
              krobillard Karl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes