I am using QGraphicsProxyWidget to embed QWidgets inside a QGraphicsScene. The problem comes with the style with which this widgets are drawed. From the documentation:
A top-level item's style defaults to QGraphicsScene::style. A top-level widget's style defaults to QApplication::style
So, I have to set the style to QGraphicsScene. Right now, I am using QWidget::setStyleSheet to set custom styles based on CSS (QSS).
My question is: how can I use QGraphicsScene::setStyle, which requires an instance of QStyle, since I haven't got one? Can somebody post an example using it and setting an stylesheet-enabled style?
I have tried already QStyleFactory::create, but there is no way to create an instance of QStyleSheetStyle.
