Dgzt
23rd June 2012, 20:40
Hi!
I added a button to the QGraphics Scene:
QGraphicsProxyWidget *mCloseButton;
QPushButton *closeButton = new QPushButton( i18n( "Close" ) );
mCloseButton = scene()->addWidget( closeButton ); //Return QGraphicsProxyWidget
But around the button I have a gray rectangle.
( example: http://kepfeltoltes.hu/view/120623/pic_www.kepfeltoltes.hu_.png )
How can I set the background of QGraphicsProxyWidget (mCloseButton) so it can be equal with the background of QGraphicsScene.
I added a button to the QGraphics Scene:
QGraphicsProxyWidget *mCloseButton;
QPushButton *closeButton = new QPushButton( i18n( "Close" ) );
mCloseButton = scene()->addWidget( closeButton ); //Return QGraphicsProxyWidget
But around the button I have a gray rectangle.
( example: http://kepfeltoltes.hu/view/120623/pic_www.kepfeltoltes.hu_.png )
How can I set the background of QGraphicsProxyWidget (mCloseButton) so it can be equal with the background of QGraphicsScene.