Results 1 to 4 of 4

Thread: How to hide QTableView Border

  1. #1
    Join Date
    Jun 2010
    Posts
    7
    Platforms
    Unix/X11 Windows

    Smile How to hide QTableView Border

    I used stylesheet to hide the boder follow, but it is not right.Can any body help me? how can i do this?

    listView.setStyleSheet( "border-width:0px;");

  2. #2
    Join Date
    Feb 2011
    Posts
    354
    Thanks
    17
    Thanked 27 Times in 24 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: How to hide QTableView Border

    try this qss:
    Qt Code:
    1. {
    2. border: none;
    3. }
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jun 2010
    Posts
    7
    Platforms
    Unix/X11 Windows

    Default Re: How to hide QTableView Border

    thank you very much,

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to hide QTableView Border

    Style sheets are bad and evil, so avoid them wherever possible. Use QFrame::setFrameShape() with QFrame::NoFrame.

Similar Threads

  1. Replies: 5
    Last Post: 13th November 2011, 20:49
  2. Replies: 3
    Last Post: 4th May 2011, 14:29
  3. Change QTableView border colour under special cicrumstances
    By stefanadelbert in forum Qt Programming
    Replies: 0
    Last Post: 12th April 2010, 06:52
  4. Hide rows from QTableView/QSqlRelationalTableModel
    By jiveaxe in forum Qt Programming
    Replies: 3
    Last Post: 11th November 2009, 10:14
  5. Hide the border of a tool bar?
    By Dark_Tower in forum Qt Programming
    Replies: 6
    Last Post: 20th August 2007, 14:04

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.