tags:

views:

110

answers:

1

Hi,

Please help. How can i remove index from QTableWidget

+1  A: 

Not quite obvious, there are two views the vertical and the horizontal header, they are defined in QTableView, as any widget you can hide them so its

myTableWidget->verticalHeader()->setVisible(false);
Harald Scheirich
My horizontal header is sometimes 4 and some times 5.Here i am getting some space if it is 4. How to set with out getting blank space
I don't quite understand the questions but you can set the size of a section through the interface in QHeaderView::resizeSection(int section, int size), see docs for QHeaderView
Harald Scheirich