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. Passing/Changing Arguments to QtWebengineProcess
QtWS25 Last Chance

Passing/Changing Arguments to QtWebengineProcess

Scheduled Pinned Locked Moved Unsolved QtWebEngine
qtwebenginechromiumsettingsqt 5.4.0
4 Posts 4 Posters 6.0k 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.
  • H Offline
    H Offline
    healthhazard
    wrote on last edited by
    #1

    Hi,
    I'm using Qt 5.4.0 and QtWebengine on an embedded linux system.
    I'm seeing the QtWebengineProcess running with various arguments.

    /usr/lib/qt5/libexec/QtWebEngineProcess --type=renderer --disable-accelerated-video-decode --disable-desktop-notifications --enable-accelerated-overflow-scroll --enable-fixed-position-compositing --enable-overlay-scrollbar --enable-pinch --enable-viewport --enable-viewport-meta --no-sandbox --profiler-timing=0 --use-gl=egl --disable-composited-antialiasing --enable-deferred-image-decoding --lang=en-US --enable-pinch --enable-threaded-compositing --enable-delegated-renderer --enable-impl-side-painting
    

    Where is this argument list created? Or can I enable passing arguments from my main application down to the QtWebengineProcess?
    For example I would like to pass some additional arguments to chromium and replace the lang=en-US with en-GB or de-DE in some setups.

    I tried to grep the sources for the arguments but couldn't find anything.

    Thanks in advance & best regards,
    Peter

    1 Reply Last reply
    0
    • K Offline
      K Offline
      knt261
      wrote on last edited by
      #2

      Not sure where those argument list are created, but you can pass arguments directly from your main application into Web Engine. Check my response in this thread: https://forum.qt.io/topic/60691/not-allowed-to-load-local-resource-for-iframe-how-to-disable-web-security/3 not sure if its the same for QtWebEngineProcess, but hope it helps

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Vinced
        wrote on last edited by
        #3

        Did you find from where the options are passed to the QtWebengineProcess ?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          ThatDud3
          wrote on last edited by
          #4

          alas no luck - so far still the only option is to use command line parameters to your own app - and yes every single embedded web engine sub-process will reuse the same parameters (no luck with different proxy per tab problem)
          e.g. if you try
          MyApp.exe --proxy-server=host:port
          and your app opens 10 tabs the same proxy it will be reused by every single tab/or browser/or sub-process/
          pretty much the same as setting global proxy (at application level)

          https://bugreports.qt.io/browse/QTBUG-59490

          BTW: if they implement the above they need to decide which has higher priority - global app level proxy or per web engine sub-process

          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