PDA

View Full Version : Remove border from table without removing border from cells



Ishmael
25th September 2009, 05:00
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!

pratham_shah
21st March 2012, 14:54
Hi,
I am facing same problem.
Did you find any solution for this ?

Spitfire
21st March 2012, 15:30
Won't this work?

tableWidget->setFrameShape(QFrame::NoFrame);