Results 1 to 5 of 5

Thread: get rid of grid lines & vertical table header in QTableView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Nov 2012
    Posts
    35
    Thanks
    1
    Thanked 7 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: get rid of grid lines & vertical table header in QTableView

    Quote Originally Posted by ChrisW67 View Post
    Not literally no... But then you did not ask for python. You need to identify the vertical header object of the view in a Pythonic fashion and then you need to call its setVisible method. If I had to guess then
    Qt Code:
    1. self.verticalHeader.setVisible(false)
    To copy to clipboard, switch view to plain text mode 
    got it this way
    Qt Code:
    1. def headerData(self, section, orientation, role):
    2. if role == QtCore.Qt.DisplayRole:
    3. if orientation == QtCore.Qt.Vertical:
    4. return None
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to krystosan for this useful post:


Similar Threads

  1. Vertical label on table horizontal header
    By ipkiss in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2014, 19:03
  2. Replies: 3
    Last Post: 20th January 2011, 13:24
  3. Resizing vertical header in QTableView
    By p.csakany in forum Qt Programming
    Replies: 3
    Last Post: 1st November 2010, 23:06
  4. Qtableview Vertical header order
    By Darthspawn in forum Qt Programming
    Replies: 4
    Last Post: 26th March 2010, 15:10
  5. Showing Icon in vertical header of a table
    By vishal.chauhan in forum Qt Programming
    Replies: 7
    Last Post: 15th January 2007, 10:44

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.