16class LIBDTKWIDGETSHARED_EXPORT
DBackgroundGroup :
public QWidget,
public DTK_CORE_NAMESPACE::DObject
21 Q_PROPERTY(QMargins itemMargins READ itemMargins WRITE setItemMargins)
22 Q_PROPERTY(
bool useWidgetBackground READ useWidgetBackground WRITE setUseWidgetBackground NOTIFY useWidgetBackgroundChanged)
25 explicit DBackgroundGroup(QLayout *layout =
nullptr, QWidget *parent =
nullptr);
27 QMargins itemMargins()
const;
28 bool useWidgetBackground()
const;
30 void setLayout(QLayout *layout);
32 void setBackgroundRole(QPalette::ColorRole role);
33 QPalette::ColorRole backgroundRole()
const;
36 void setItemMargins(QMargins itemMargins);
37 void setItemSpacing(
int spacing);
38 void setUseWidgetBackground(
bool useWidgetBackground);
41 void useWidgetBackgroundChanged(
bool useWidgetBackground);
44 void paintEvent(QPaintEvent *event)
override;
45 bool event(QEvent *event)
override;
48 using QWidget::setLayout;
49 using QWidget::setAutoFillBackground;