Important: Please read the Qt Code of Conduct -

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{}

    view = new QGraphicsWebView ();
    vlayout = new QVBoxLayout() ;
    container = new QWidget() ;

    vlayout->addWidget( view ) ;
    vlayout->addWidget( m_refreshButton ) ;

    //Then we add the container to a proxy widget?
    proxy = new QGraphicsProxyWidget() ;

    I'm lost! Can anyone help?

    [EDIT: code formatting, please wrap in @-tags, Volker]

Log in to reply