C++ Qt编辑器问题
我遇到过这样的情况:我必须手动关闭 QTableWidget 的持久编辑器。
默认情况下,关闭编辑器不会导致保存对 QTableWidgetItem 的更改(它只是丢弃它们)。
我希望将这些更改与 closePersistentEditor
调用一起保存 - 应该如何完成?
我尝试在 closePersistentEditor
调用之前发出 cellChanged
>closePersistentEditor 调用 - 它没有帮助
I have the case when I have to manually close the persistent editor for the QTableWidget
.
By default, closing the editor this doesn't result in saving the changes to the QTableWidgetItem
(it simply discards them).
I wish to save these changes along with the closePersistentEditor
call - how should it be done?
I tried emitting cellChanged
before the closePersistentEditor
call - it didn't help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来你可以写这样的东西
Looks like you can write something like this