Python Forum
Change color of a row of a QTableView?
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change color of a row of a QTableView?
#8
Hi Panoss,

I saw your post about colouring some rows in your qsqltablemodel. I have managed to colour some my rows using the data() mathod and make them uneditable with the flag method. Before I did this my model was editable and could automatically update my table. However soon as i color some columns, it my edits just disappear soon as I move to next Field. Have u came across this problem before and if so, how did u get around it.

Thanks
Reply


Messages In This Thread
Change color of a row of a QTableView? - by panoss - May-24-2017, 05:21 PM
RE: Change color of a row of a QTableView? - by Mafireyi - Sep-23-2017, 03:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] PyQt5 QTableView SQLite : edit cell HeinKurz 2 2,419 Mar-27-2023, 10:41 AM
Last Post: HeinKurz
  [PyQt] QStyledItemDelegate and QTableView malonn 1 1,657 Feb-07-2023, 07:15 PM
Last Post: malonn
  [PyQt] QTableView set header labels HeinKurz 2 6,858 Jan-23-2023, 08:46 AM
Last Post: HeinKurz
  [PyQt] Determine whether text in QTableView cell is fully visible or not random_nick 0 995 Oct-27-2022, 09:29 PM
Last Post: random_nick
  [PyQt] QTableView: scroll to top cell of the screen random_nick 2 2,865 Oct-08-2022, 12:29 AM
Last Post: random_nick
  [PyQt] [Solved]Add a Blank Row To QTableView Extra 3 5,582 Oct-02-2022, 04:53 PM
Last Post: Extra
  [PyQt] [Solved]Change text color of one line in TextBrowser Extra 2 4,931 Aug-23-2022, 09:11 PM
Last Post: Extra
  Tkinter - How can I change the default Notebook border color? TurboC 5 14,815 May-23-2022, 03:44 PM
Last Post: bigmac
Question [Tkinter] Change Treeview column color? water 3 9,670 Mar-04-2022, 11:20 AM
Last Post: Larz60+
  Can't get tkinter button to change color based on changes in data dford 4 3,450 Feb-13-2022, 01:57 PM
Last Post: dford

Forum Jump:

User Panel Messages

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