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

QTextEdit undo issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.8.0
    • 4.7.4, 5.5.0
    • None
    • Window 7, Qt 4.7.4

    Description

      There is an issue in undo – redo for QTextEdit control. We can duplicate this issue with the help of following steps.

      1. Enter some text in QTextEdit.
      2. Select the text by Ctrl+A
      3. Override the text as "test"
      3. Ctrl+Z to undo the changes
      >> "t" character remained "est" undone

      Sample Code:

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

      Attachments

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

        Activity

          People

            dcape Dan Cape
            mrshahi Sonu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes