Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Qt 5.7 Multiply web views and subsystem:console
Forum Updated to NodeBB v4.3 + New Features

Qt 5.7 Multiply web views and subsystem:console

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 485 Views
  • 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.
  • C Offline
    C Offline
    cr0_
    wrote on last edited by cr0_
    #1

    Hi, i have next simple code:

    #include <QtWidgets/QApplication>
    #include <QtWebEngineWidgets/QWebEngineView>
    
    int main(int argc, char *argv[])
    { 
    #ifdef QT_DEBUG
    	qputenv("QTWEBENGINE_REMOTE_DEBUGGING", "23654");
    	#pragma comment(linker, "/subsystem:console")
    #endif
    
    	QApplication application(argc, argv);
    
    	QWebEngineView view1_;
    	view1_.load(QUrl("http://google.com"));
    	QWebEngineView view2_;
    	view2_.load(QUrl("http://google.com"));
    	QWebEngineView view3_;
    	view3_.load(QUrl("http://google.com"));
    	QWebEngineView view4_;
    	view4_.load(QUrl("http://google.com"));
    
    	return application.exec();
    }
    

    I use subsystem:console for seeing debug messages. If i close console window I am getting next assert error: http://prntscr.com/c9034s
    It reproduces really often. Is it Qt bug, or I don't know some rules of creating multiply web views?

    Thanks.

    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