PDA

View Full Version : a question about QTable



qtopiahooo
18th January 2007, 10:30
hi, everyone

i met a question about QTable. i want to set the background of the current (row, col) by subclassing QTable and implementing the paintCell funtion.

in the paintCell funtion, if the current cell is selected, the QColorGroup::Background is set to the proper color, then QTable::paintCell(...) funtion is called. but it doesn't work.

anyone has any advice?Thanks advance

aamer4yu
18th January 2007, 10:35
try setAutoFillBackground() function....
hope this helps :)

qtopiahooo
19th January 2007, 02:25
try setAutoFillBackground() function....
hope this helps :)

thank you,aamer4yu

but in Qt3, there isn't setAutoFillBackground function.