Hi,
I have a QPushButton on a QGraphicsProxyWidget. However when I rotate the proxy widget, the widget rotates but the rotation of the button is cannot be seen. Is it possible to rotate the QPushButton to appear rotated say at an angle of -20.
view.
setRenderHint(QPainter::Antialiasing);
QGraphicsProxyWidget *pw = scene.addWidget(wi);
pw->setPos(100, 100);
pw->setRotation(-20);
QGraphicsView view(&scene);
view.setRenderHint(QPainter::Antialiasing);
view.setDragMode(QGraphicsView::ScrollHandDrag);
QPushButton *btn = new QPushButton("My Button");
QGraphicsProxyWidget *pw = scene.addWidget(wi);
pw->setPos(100, 100);
pw->setRotation(-20);
To copy to clipboard, switch view to plain text mode
Any pointer would be of great help.
Thanks
Bookmarks