使撤消/重做与 QTextDocument 和“replaceAll”配合良好运营
如何使单个“replaceAll”操作成为 QTextDocument
撤消堆栈中的单个步骤?
它不使用QUndoStack
,它有自己的。 :(
How do I make a single 'replaceAll' operation be a single step in QTextDocument
's undo stack?
It does not use QUndoStack
, it has it's own. :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
beginEditBlock()
/endEditBlock()
将所有操作记录为单个撤消步骤,请参阅此处的答案 https://stackoverflow.com/a/27113540/72312了解详细信息。Use
beginEditBlock()
/endEditBlock()
to record all operations within as a single undo step, see the answer here https://stackoverflow.com/a/27113540/72312 for details.