Hi,
I've a TableWidget:
Qt Code:
TableResult->setRowCount(10); TableResult->setColumnCount(5); for(int c=1;c<5;c++){ for(int r=1;r<10;r++){ QTableWidgetItem *tmpItem; TableResult->setItem(r, c, tmpItem); } }To copy to clipboard, switch view to plain text mode
How to set background color rows number 1, 3, 5, 7, 9 to (example) blue, and rows number 2,4,6,8 to red?
If I had a model-view-delegate pattern, I could do it in delegate, but I've any view, any model, any delegate :/
Bookmarks