Results 1 to 3 of 3

Thread: Remove border from table without removing border from cells

  1. #1
    Join Date
    Sep 2009
    Posts
    41
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Remove border from table without removing border from cells

    I'm tearing my hair out here trying to figure out how to remove the outside border from a table without removing the borders from cells. If I do the following,

    QTextTableFormat tableFormat;
    tableFormat.setBorder(0);

    then ALL of the borders are removed, the cell borders included.

    My goal is to get a nice single-pixel black line around each of the cells. Is there an elegant way to do this?

    Thanks for your help!

  2. #2
    Join Date
    Mar 2012
    Location
    India
    Posts
    22
    Thanks
    3
    Qt products
    Qt4

    Default Re: Remove border from table without removing border from cells

    Hi,
    I am facing same problem.
    Did you find any solution for this ?

  3. #3
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Remove border from table without removing border from cells

    Won't this work?
    Qt Code:
    1. tableWidget->setFrameShape(QFrame::NoFrame);
    To copy to clipboard, switch view to plain text mode 

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.