如何在 Qt 中设计自定义表格或表格列表?
I have a certain task to do and I my table widget looks like this:
What I want to do is to make my table look like this:
So naturally my question is how do I go on about that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
存在多种解决方案可以根据您的需要设置其样式
QStyledItemDelegate
。这允许您使用QPainter
功能来完全按照您想要的方式绘制每个单元格。Multiple solutions exists to style it as you want
QStyledItemDelegate
. This allows you to use theQPainter
functionality to draw each cell exactly like you want.