خرید بک لینک

Vote count: 0

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.

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 12 خرداد 1395 ساعت: 14:35

صفحه بندی