How do I color the background of a QtableView the odd rows of green? And color even lines of red?
How do I color the background of a QtableView the odd rows of green? And color even lines of red?
I dont know how to set the colors but to distinguish odd from even do something like
Qt Code:
for(int i=0;i<10;i++) { if ( i%2 == 0) //its even paint_red(); else // its odd paint_green(); }To copy to clipboard, switch view to plain text mode
__________________________________________________
My projects: calculator MathGraphica ; SuperEpicMegaHero game ; GooglePlay ; bitbucket ; github
Like my projects ? Buy me a kofi
Bookmarks