I need help:
Qt Code:
  1. void MyTree::drawRow( QPainter *painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const
  2. {
  3. painter->save();
  4. QBrush brush( QColor( 255, 240, 180 ) );
  5. painter->fillRect( rect, brush ) // how can i get rect ( QRect ) ?
  6. painter->restore();
  7. QTreeWidget::drawRow( painter, option, index );
  8. }
To copy to clipboard, switch view to plain text mode