QGraphicsWebView in a QGraphicsScene
-
I want to add a QGraphicsWebView within a QGraphicsScene, AND include a REFRESH button.
So, is there someway I can do create a vertical layout, add the webpage, and the button like so?:
@
class SomeGraphic public QGraphicsObject{}SomeGraphic::SomeGraphic(){
view = new QGraphicsWebView ();
vlayout = new QVBoxLayout() ;
container = new QWidget() ;vlayout->addWidget( view ) ; vlayout->addWidget( m_refreshButton ) ; container->setLayout(vlayout);
//Then we add the container to a proxy widget?
proxy = new QGraphicsProxyWidget() ;
proxy->setParentItem(this);
proxy->setWidget(m_container);
}
@I'm lost! Can anyone help?
[EDIT: code formatting, please wrap in @-tags, Volker]