Qt 5.7 Multiply web views and subsystem:console



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.