Hello,
I struggle with painting QPushButton with inherited styleSheet in custom delegate.
Delegate parent is TreeView with styleSheet.

The way I paint it in my QStyledItemDelegate.

Qt Code:
  1. void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
  2. {
  3. pb_Style.state |= QStyle::State_Raised | QStyle::State_Enabled | option.state;
  4.  
  5. QRect pbRect = option.rect;
  6. ...
  7.  
  8. pb_Style.rect = pbRect;
  9. pb_Style.text = QString();
  10.  
  11. style->drawControl(QStyle::CE_PushButton, &pb_Style, painter, qobject_cast<QWidget *>(this->parent()) );
  12. }
To copy to clipboard, switch view to plain text mode 

In short I don't know how to paint QPushButton with inherited styleSheet from the view.
Any suggestions are more then welcome.