Questions tagged [qtablewidget]

QTableWidget is a Qt class providing an item-based table view with a default model.

Table widgets provide standard table display facilities for applications. The items in a QTableWidget are provided by QTableWidgetItem.

If you need to use your own data model, then QTableView is preferrable.

The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.

1192 questions
-2
votes
1 answer

QTableWidget setText returning Attribute error

My issue is similar to PyQt - setText method of QTableWidget gets AttributeError. However, in this case the solution doesn't work. I'm attempting to rewrite some fields automatically in which the values to be set are held in an array. As I have some…
Awais Shah
  • 17
  • 1
  • 6
-2
votes
1 answer

Pass dictionary of lists to Qtablewidget - PyQT5

I have used PyQT5 to create the UI of a search engine. I have been able to let the application open a folder containing a pdf file, create an index file, search within it and export the results as txt and excel file. Running the code attached will…
-2
votes
2 answers

Access variable from method of class Ui_MainWindow(object)

I have created a GUI that ask for files to index, search within it and spit out the results. I am stuck with the last bit that is to show the excerpt of the documents retrieved. I need to populate the tableWidget with the results of a search engine…
-2
votes
1 answer

Destroy a return value from a function with multiple arguments using PyQt5 "Updated"

This is a code proposed by S.N all the thanks to him, using functional Programming. It had a serious problem. If it gives runItem tuple some element for example ("222", 15), and this element didn't exist on the data dictionary, it's reference to the…
-2
votes
2 answers

How to prevent cell editing after pushing header section item?

When I push horizontal header section item in QTableWidget the upper cell in this column becomes ready to be edited. How can I prevent it?
Ufx
  • 2,595
  • 12
  • 44
  • 83
1 2 3
79
80