Best Practice to Hidden Numbers on the left of PyQT Table – PyQT Tutorial

By | December 12, 2019

If you have created a table in pyqt, you may find there are some numbers on the left of table. Here is an example:

numbers on the left of pyqt table

In this tutorial, we will tell you how to hidden them.

What are these numbers?

These numbera are in the vertical header of pyqt table, you can learn more by this tutorial.

What is Horizontal Header and Vertical Header in PyQT Table, How to Change and Hidden Them

How to hidden these numbers?

After we have known these numbers are in vertical header of table. You can hidden vertical header to hidden them.

Here is an example:

table.verticalHeader().setVisible(False)

We can use setVisible() function to hidden them. Then you will find these number disappeared.

hidden numbers on the left of pyqt table

Leave a Reply