Or even use a style sheet.
Qt Code:
tableview.setStyleSheet("background-color: wathevercolor")To copy to clipboard, switch view to plain text mode
To set the background color of selected text or item:
Qt Code:
mytableWidget.setStyleSheet(selection-background-color : acolor")To copy to clipboard, switch view to plain text mode
pavanbarot (11th August 2010)
Bookmarks