0

I want to create multitab text and html editor .I ecountered the problem : i need to implement undo/redo operation for each text browser individually .But the operations are applied to all windows at oncee. How can i fix it ?

Creati8e
  • 21
  • 1
  • 7
  • only trigger the operation on the current\specified tab. – UmNyobe May 15 '14 at 12:17
  • @UmNyobe QTextEdit* currentEdit = qobject_cast(tabWidget->widget(tabWidget->currentIndex())); This is the best way to get current text field ? – Creati8e May 15 '14 at 13:12

1 Answers1

0

If you are using QTextEdit, you can enable undo redo by setting QTextEdit::setUndoRedoEnabled(true);

Pratham
  • 1,522
  • 1
  • 18
  • 33