Python Forum
[PyQt5] get all row data from tableview model
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt5] get all row data from tableview model
#1
Hi,

I have a tableView and when double click on a row I get the index of the selected model.
I get the index like this
clickedIndex.row()
Unfortunately I can't figure out how to get the value of first column.I know that I can get the data of the selected cell, this is not what I'm looking for.

I have on the row:

ROWID (hidden) | Name | City |Address

the selection behaviour is to select the entire row.
I want to get the value from the first column of the selected index, in this case ROWID.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PyQt5 form not displaying my data from SQLite3 Database Linuxdesire 2 4,972 Jan-10-2023, 09:51 PM
Last Post: gradlon93
  [PyQt] Pyqt5: How do you make a button that adds new row with data to a Qtablewidget YoshikageKira 6 6,983 Jan-02-2020, 04:32 PM
Last Post: Denni
  [PyQt] Send data between windows Pyqt5 and Qt Designer kkonrad002 8 10,159 Sep-05-2019, 02:25 PM
Last Post: Denni
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,821 Apr-06-2019, 11:15 PM
Last Post: ZenWoR

Forum Jump:

User Panel Messages

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