int getBaselineOffset( QFontMetrics* metrics, int lineHeight ){ ...// return baselineOffset - 1 ;// return baselineOffset - 2 ; return baselineOffset - 3 ;}
void CTreeView::paintEvent(QPaintEvent *event) { QPainter painter1(this); painter1.drawText(10,13,QString("first_item")); painter1.drawText(110,9,QString("first_item")); painter1.drawText(210,3,QString("first_item"));}
void CTreeView::paintEvent(QPaintEvent *event) { QPainter painter1(this); painter1.setOpacity(0.5); painter1.drawText(10,13,QString("first_item")); painter1.drawText(110,9,QString("first_item")); painter1.drawText(210,3,QString("first_item"));}