Details
-
Bug
-
Resolution: Done
-
P2: Important
-
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(); }