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. Layout dual QWebEngineViews in common app window
Qt 6.11 is out! See what's new in the release blog

Layout dual QWebEngineViews in common app window

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 605 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.
  • E Offline
    E Offline
    eureka
    wrote on last edited by
    #1

    I would like to place dual QWebEngineViews side-by-side in a Qt 5.7 container.

    Left window menu will access URL's in right window (like a dual pane Commander). I need a window dynamic menu instead of conventional Qt menubar.

    I also need to avoid "cross-origin framing" errors when I embed a website in either view.
    I experienced this error when trying to prototype the HTML layout in a simple apache web site with two containers.

    Is there a Qt 5.7 example of a dual browser view app?
    Or what should I do in main.cpp?

    Currently two separate windows ( QWebEngineView view1; and QWebEngineView view2;) are being launched.

    Any advice is appreciated.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mitchell
      wrote on last edited by
      #2

      @eureka
      I would create a Qt designer Form Class and then add a layout. And then you can add 2 widget elements to the layout. After you have that you can promote them to be derived from your QWebEngine class. And then the layout will handle displaying both your web views in the same window. And then all you have to do is create a instance of the new Designer Form class from main.cpp.

      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