How to hide QTableWidget border
-
wrote on 17 Mar 2014, 08:14 last edited by
Hi
i would like to hide the border (the outer window , not the individual cells) in QTableWidgets.@
Widget::Widget(QWidget *parent)
: QWidget(parent)
{
setStyleSheet("QTableWidget {background-color: transparent;}");
QTableWidget *table = new QTableWidget(this);
table->setRowCount(3);
table->setColumnCount(3);table->verticalHeader()->setVisible(false); table->horizontalHeader()->setVisible(false); table->verticalScrollBar()->setVisible(false); table->horizontalScrollBar()->setVisible(false);
}
@with the code above i can see 3X3 table but around the table there is one more box, looks like the border, i would like to hide it.
please help..
-
wrote on 17 Mar 2014, 13:08 last edited by
I haven't tried it, but can you use the stylesheet to set it's border width to zero?
@
border: 0px;
@ -
wrote on 18 Mar 2014, 04:54 last edited by
Try:
@table->setFrameStyle(QFrame::NoFrame);@
1/3