Unsolved Layout dual QWebEngineViews in common app window
-
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.
-
@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.