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