Screen Shot 2013-12-08 at 9.56.58 PM.jpg
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 ?
Screen Shot 2013-12-08 at 9.56.58 PM.jpg
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 ?
How can I get rid of grid linesand vertical header of QTableViewQt Code:
view->verticalheader()->setVisible(false);To copy to clipboard, switch view to plain text modeUse a delegate, but consider whether QListView with QListView::setViewMode() with QListView::IconMode is a better fit firstand display text underneath the image instead of being displayed on the right of image ?
Doesn't work in pythonQt Code:
self.verticalheader().setVisible(False)To copy to clipboard, switch view to plain text mode
i do not know how to use delegate, could you please refer me some example.
Thanks!!!
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
Qt Code:
self.verticalHeader.setVisible(false)To copy to clipboard, switch view to plain text mode
QStyledItemDelegate but do check out the QListView first.
got it this way
Qt Code:
def headerData(self, section, orientation, role): if role == QtCore.Qt.DisplayRole: if orientation == QtCore.Qt.Vertical: return NoneTo copy to clipboard, switch view to plain text mode
Bookmarks