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. QtWebEngine and enable-logging
Forum Updated to NodeBB v4.3 + New Features

QtWebEngine and enable-logging

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 498 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.
  • D Offline
    D Offline
    deleted472
    wrote on 25 Apr 2022, 21:01 last edited by
    #1

    Hi all,
    On windows, as soons as I create a basic QWebEngineView object with the --enable-logging argument, I have 2 QWebEngine processes that are started: one attached to the main application (the renderer) and one detached from the main application (type=utility), and shown in its own window. On Linux, the second process is attached to the main application and no window is shown.

    Is there a way to enable logging without having this window shown above the application ?

    Code to repro the issue:

    #include <QApplication>
    #include <QWebEngineView>
    
    int main(int argc, char *argv[])
    {
    	std::vector<char*> new_argv(argv, argv + argc);
    	new_argv.push_back(const_cast<char *>("--enable-logging"));
    	new_argv.push_back(nullptr);
    	argv = new_argv.data();
    	argc = argc + 1;
    	QApplication a(argc, argv);
    	QWebEngineView w;
    	w.load(QUrl("http://www.google.com"));
    	w.show();
    	return a.exec();
    }
    

    d1fe9e3e-4e2d-407c-a456-562409629fb0-image.png

    1 Reply Last reply
    0

    1/1

    25 Apr 2022, 21:01

    • Login

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