0

How could I use PyQt to add a progress bar as a cell in my TableView? For example, suppose I have a table that holds several running tasks and I would like one of the cells in each row to show the percentage of the completed task. Here is a quick example of what I mean.

4

1 回答 1

4

from QT documentation Qtable implements QAstractItemView that has the method setIndexWidget(index, new widget()) that you can use to add the qprogressbar

tableView.setIndexWidget(index, QProgressBar())
于 2015-11-28T23:03:36.443 回答