Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGraphicsWebView in a QGraphicsScene

QGraphicsWebView in a QGraphicsScene

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jurimo
    wrote on last edited by
    #1

    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]

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved