0

How can I change background color for child windows in Qt MDI project?

Qt-MDI - background color

Ufx
  • 2,595
  • 12
  • 44
  • 83
  • 1
    if you want changed to QMdiArea's background color, then use the setBackground() with QBrush. eg. yourMdiArea->setBackground(Qt::yellow); – Devopia Jan 21 '16 at 03:19

1 Answers1

1

If mdiSubWindow is a pointer to your child window use code like

mdiSubWindow->setStyleSheet("background-color:<color you like>;");

can be a (well known) name (e.g. white) or a numeric value (e.g. #ff00dc).

jole
  • 11
  • 1