Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-102947

Windows: enable-logging switch opens a windows console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.4.0 RC1
    • 5.15.1
    • WebEngine
    • None
    • Windows

      On windows, as soon 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.

      Expected:

      No console window is opened and the second instance of QtWebEngineProcess remains attached to the main 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();
      }
      

       Screenshot.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt_webengine_team Qt WebEngine Team
            jirauser54756 user-3f449 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes