Attachment 9841
How can I get rid of grid lines and vertical header of QTableView and display text underneath the image instead of being displayed on the right of image ?
Printable View
Attachment 9841
How can I get rid of grid lines and vertical header of QTableView and display text underneath the image instead of being displayed on the right of image ?
Quote:
How can I get rid of grid lines
Code:
view->setShowGrid(false);
Quote:
and vertical header of QTableView
Code:
view->verticalheader()->setVisible(false);
Use a delegate, but consider whether QListView with QListView::setViewMode() with QListView::IconMode is a better fit firstQuote:
and display text underneath the image instead of being displayed on the right of image ?
Not literally no... But then you did not ask for python. You need to identify the vertical header object of the view in a Pythonic fashion and then you need to call its setVisible method. If I had to guess then
Code:
self.verticalHeader.setVisible(false)
QStyledItemDelegate but do check out the QListView first.