A
A
artshelom2018-10-10 23:09:58
Python
artshelom, 2018-10-10 23:09:58

How to make an infinite table in python?

Using table view is it possible to make the table scroll down infinitely?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavlo Ponomarenko, 2018-10-12
@TheShock

You can add a line down.

rowPosition = self.table.rowCount()
table.insertRow(rowPosition)

And then change its content:
table.setItem(rowPosition , 0, QtGui.QTableWidgetItem("text1"))
table.setItem(rowPosition , 1, QtGui.QTableWidgetItem("text2"))
table.setItem(rowPosition , 2, QtGui.QTableWidgetItem("text3"))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question