<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[More QCommandLineParser options in custom webengine app]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm making my own frontend for qtwebengine (a simplebrowser/quicknanobrowser). Currently I need to pass some startup parameters.</p>
<p dir="auto">This is my code</p>
<pre><code>int main(int argc, char** argv) {
  QCommandLineParser parser;
  parser.setApplicationDescription("The Browser");
  parser.addHelpOption();
  parser.addVersionOption();
  QCommandLineOption targetDirectoryOption(
      QStringList() &lt;&lt; "i"
                    &lt;&lt; "isolation",
      QCoreApplication::translate("main", "Isolate the browser for a certain &lt;domain&gt;."),
      QCoreApplication::translate("main", "domain"));
  parser.addOption(targetDirectoryOption);
  parser.process(app);
  return QApplication::exec();
</code></pre>
<p dir="auto">Now the problem starts when I try to give it extra startup parameters such as <code>--no-sandbox</code> or <code>--remote-debugging-port</code> intended for QtWebEngine. My program stops execution and gives following error:</p>
<pre><code>browser: Unknown options: remote-debugging-port, disable-features.
</code></pre>
<p dir="auto">How can I both support my startup flags but also keep using the ones intended for webengine/chromium ?</p>
]]></description><link>https://forum.qt.io/topic/123830/more-qcommandlineparser-options-in-custom-webengine-app</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 05:42:21 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/123830.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Feb 2021 14:11:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to More QCommandLineParser options in custom webengine app on Mon, 15 Feb 2021 23:12:19 GMT]]></title><description><![CDATA[<p dir="auto">@Alexander-M-J said in <a href="/post/644606">More QCommandLineParser options in custom webengine app</a>:</p>
<blockquote>
<p dir="auto">My program stops execution and gives following error:<br />
browser: Unknown options: remote-debugging-port, disable-features.</p>
<p dir="auto">How can I both support my startup flags but also keep using the ones intended for webengine/chromium ?</p>
</blockquote>
<p dir="auto">did you also provide a value for the parameter?<br />
<a href="https://doc.qt.io/qt-5/qtwebengine-debugging.html#qt-webengine-developer-tools" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qtwebengine-debugging.html#qt-webengine-developer-tools</a></p>
]]></description><link>https://forum.qt.io/post/644666</link><guid isPermaLink="true">https://forum.qt.io/post/644666</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Mon, 15 Feb 2021 23:12:19 GMT</pubDate></item><item><title><![CDATA[Reply to More QCommandLineParser options in custom webengine app on Mon, 15 Feb 2021 19:27:03 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Your code snippet is incomplete so it's impossible to reproduce your issue.</p>
<p dir="auto">In any case, if implemented correctly the additional parameters you pass using the parser should have no influence on the other since they should be pared first.</p>
]]></description><link>https://forum.qt.io/post/644647</link><guid isPermaLink="true">https://forum.qt.io/post/644647</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 15 Feb 2021 19:27:03 GMT</pubDate></item></channel></rss>