i have in my application that when i click on row i have the default blue row marked but beside this blue color i what to paint the row in different color via function not depending on user clicked signal , in sort i need a function that i will pass the row index and it will paint the row in x color.
A:
create a delegate function with an item role. set the item role in each tree item. Access the item in the paint event of tree delegate and paint the row accordingly.
Shadow
2010-10-21 05:08:08
wow thanks , can you point me with sample code?
2010-10-21 09:15:04
Note that delegates are for the Q*View classes, not generally for the Q*Widget classes (although you might be able to make them work).
Caleb Huitt - cjhuitt
2010-10-21 19:37:38