Hi! I'm trying to apply a custom style to a widget. It seems to work correctly when I try to apply it using:

Qt Code:
  1. QApplication::setStyle(style);
To copy to clipboard, switch view to plain text mode 

but I would like to apply this only to a specific widget, so I tried:

Qt Code:
  1. QGraphicsView* view = new QGraphicsView(this);
  2. view->setStyle(style);
To copy to clipboard, switch view to plain text mode 

but this seems not to work. Any idea why?
Thanks!