Hello all,
I'm trying the following to set background color for a QGrahpicsWidget object

Qt Code:
  1. QGrahpicsWidget* w = new QGrahpicsWidget();
  2. QBrush brush;
  3. QPalette palette;
  4. palette = w->palette();
  5. brush.setColor(Qt::blue);
  6. palette.setBrush(QPalette::Active, QPalette::Background, brush);
  7. w->setPalette(palette);
To copy to clipboard, switch view to plain text mode 

but it doesn't work
any one has an idea???
thx to much