简体   繁体   English

如何在 PyQt5 上更改 QTableWidget 上的行索引

[英]How to change row indexes on QTableWidget on PyQt5

So i have a Table which looks something like this:所以我有一个看起来像这样的表:

在此处输入图像描述

and I want to change the indexes circled in red.我想更改以红色圈出的索引。 How do I do that?我怎么做?

as musicamante said in the comments, the answer is using the methods:正如musicamante在评论中所说,答案是使用以下方法:

setVerticalHeaderLabels()
or
setVerticalHeaderItem()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM