Python Forum
[PyGUI] Showing text in QTableView
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGUI] Showing text in QTableView
#1
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] PyQt5 QTableView SQLite : edit cell HeinKurz 2 2,286 Mar-27-2023, 10:41 AM
Last Post: HeinKurz
  [PyQt] QStyledItemDelegate and QTableView malonn 1 1,600 Feb-07-2023, 07:15 PM
Last Post: malonn
  [PyQt] QTableView set header labels HeinKurz 2 6,426 Jan-23-2023, 08:46 AM
Last Post: HeinKurz
  [PyQt] Determine whether text in QTableView cell is fully visible or not random_nick 0 957 Oct-27-2022, 09:29 PM
Last Post: random_nick
  [PyQt] QTableView: scroll to top cell of the screen random_nick 2 2,768 Oct-08-2022, 12:29 AM
Last Post: random_nick
  [PyQt] [Solved]Add a Blank Row To QTableView Extra 3 5,373 Oct-02-2022, 04:53 PM
Last Post: Extra
  How to update the list of a combo box in a QTableView panoss 10 6,132 Feb-05-2022, 03:24 PM
Last Post: panoss
  [PyQt] How to Copy-Paste a table from Office apps to QTableView? Vittorio 5 7,138 Aug-05-2021, 11:14 AM
Last Post: Axel_Erfurt
  [PyQt] Qtableview adapte size to WBPYTHON 3 11,102 Mar-23-2020, 01:51 AM
Last Post: deanhystad
  [PyQt] Why lineEdit is showing text like this ?? scorp08 13 4,659 Sep-13-2019, 09:14 PM
Last Post: Denni

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020