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

Text cursor not restored when after a context menu is closed in QTextEdit or QLineEdit.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.7.3
    • None
    • Ubuntu 10.04
      Windows XP

    Description

      Create an application which simply shows a QTextEdit or QLineEdit as a window such as the one below.

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

      Right click in the text area to show the context menu and select an option or click elsewhere in the text area to close the menu. The menu will be closed but the text cursor will remain hidden until text is entered or the window loses and regains focus.

      This only appears to affect top level widgets.

      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
            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes