PDA

View Full Version : QTableWidget border problem



Alundra
24th May 2014, 20:16
Hi all,
QTableWidget works very fine but I saw it's not possible to hide border of QTableWidgetItem ?!
I tried using stylesheet "QTableView::item" with "border: none;" but a line with black color still painted.
I tried using "border: transparent;" and the same result, the border still there.
Maybe it's a bug of Qt ?
Thanks

anda_skoa
24th May 2014, 22:22
Not sure I understand your goal, but have you tried setShowGrid(false)?

Cheers,
_

Alundra
24th May 2014, 22:51
Thanks for the fast reply, that solve the problem (who is not one so).
But, if you have that in stylesheet :


QTableView::item
{
border-bottom: 1px solid #3A3939;
}

You still see the border so that need to not have that.
Maybe you know a way to have it working and keep the stylesheet.
Or maybe that need to have a custom stylesheet for the widget with "border: none;".