Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建多选项卡文本和 html 编辑器。我遇到了这个问题:我需要为每个文本浏览器单独实现撤消/重做操作。但是这些操作同时应用于所有窗口。我该如何解决?
如果您正在使用QTextEdit,您可以通过设置启用撤消重做QTextEdit::setUndoRedoEnabled(true);
QTextEdit
QTextEdit::setUndoRedoEnabled(true);