Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [PyGUI] Showing text in QTableView
I want to implement a simple view to which my program would then export data from a text file to show, which should look like this:

Image 1

However, after making a window with QTableView in Qt Designer there is only a blank white space and nothing like a table:

Image 2

As much as I understand, one has to come up with a model which would allow entry of information into QTableView. But I have no idea how to create that model. Also, I'm not really quite sure how one can deliver parsed data form a text file to the QTableView.

Can you please help me with the following:

- How does one set a model for QTableView? Where does that model come from?
- How does one export data to QTableView cells after they are created?

Would appreciate your help.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  [PyQt] Qtableview adapte size to WBPYTHON 3 94 Mar-23-2020, 01:51 AM
Last Post: deanhystad
  [PyQt] Why lineEdit is showing text like this ?? scorp08 13 600 Sep-13-2019, 09:14 PM
Last Post: Denni
  [PySide2][PyQt5] update QTableView cpuin 0 2,054 Mar-07-2018, 10:20 PM
Last Post: cpuin
  Change color of a row of a QTableView? panoss 7 16,770 Sep-23-2017, 03:02 PM
Last Post: Mafireyi
  Displaying error in QTableview and with Checkbox in Column under macOsX nieselfriem 1 2,557 Mar-19-2017, 10:43 PM
Last Post: nilamo

Forum Jump:

Users browsing this thread: 1 Guest(s)