QBrush brush; brush.setStyle(Qt::LinearGradientPattern); ui->frame->setStyle(brush); // !!ошибка !! не во можно преобразовать QBrush v QStyle 
  • Is it to color the background? - gil9red
  • @ gil9red yes, I know to paint in a different color, but how to make a gradient is not. - timob256
  • And so, through StyleSheet tried? - gil9red
  • @ gil9red ui-> frame-> styleSheet (Qt :: LinearGradientPattern); // 2660 - timob256
  • no, there is a setStyleSheet that accepts a row. The Style Sheet syntax repeats CSS, and there are examples for specifying the background of a widget as a gradient. Google: qt style sheet background gradient - gil9red

0