编辑时的 PyQt QTableWidget 键盘事件
我想以与 MS Excel 类似的方式导航 QTableWidget
。
例如,当用户在编辑单元格时按右箭头键,编辑将完成,并且右侧的下一个单元格将被选择。我已经搜索了 Qt 文档,但似乎无法找到具体方法。
I want to navigate QTableWidget
in a similar way to MS Excel.
For example, when the user presses the right arrow key while editing a cell, the editing will finish and the next cell to the right will be selected. I have searched the Qt docs, but can't seem to find out how.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定你是否还需要这个,但就这样吧。
Not sure if you still need this, but here goes.