Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Does Chromium/Chrome need to be installed on linux in order to use QtWebEngine?
Forum Updated to NodeBB v4.3 + New Features

Does Chromium/Chrome need to be installed on linux in order to use QtWebEngine?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 803 Views 1 Watching
  • 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.
  • V Offline
    V Offline
    VRHans
    wrote on 29 Jul 2016, 22:49 last edited by
    #1

    I've been getting my a** kicked trying to figure out the dependencies to using QtWebEngine in my Qml based application and deploying it to a linux box without Qt installed.

    I finally got it to the point where I could hide the Qt folder on my dev box (CentOS 7 x64 vm), start the application from a single folder on the desktop, and everything worked great. This box has Chrome installed already.

    I tried just dumping this self-contained folder onto a clean Ubuntu x64 vm and a clean CentOS 7 x64 vm.

    The Ubuntu vm just hung for a long period of time (as in several minutes) and then suddenly my application appeared. I thought this might be a one time caching issue, but everytime I start it on Ubuntu it takes a crazy amount of time to do anything - there's no CPU usage, and the HDD isn't in use. When it does startup, and I go to the UI that hosts the WebEngineView - the view comes up fine, but when I navigate anywhere it immediately core dumps. Looking at the core dump with gdb wasn't particularly helpful (I just looked at the backtrace and it crashes in QtWebEngine) so before I started really looking into that I moved to try the clean CentOS vm. The other Qml based UIs in the application appear to function just fine once it starts up.

    When I start it on the CentOS image - it starts up instantly and all the other UI views work fine (Qml based but not using WebEngineView.) When I select the UI with the WebEngineView it comes up as expected, and then when I navigate it core dumps - but I see an error in the console first: "js: Uncaught InvalidAccessError: Failed to execute 'measure' on 'Performance': 'responseEnd' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information."

    Anyhow - has anyone successfully deployed a Qt Qml application that uses WebEngineView to a linux box that doesn't have Qt installed?

    Also, as an aside, how are developers supposed to know that you have to package things like "qtwebengine_devtools_resources.pak" (and other pak files) with the QtWebEngineProcess?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRHans
      wrote on 29 Jul 2016, 23:18 last edited by
      #2

      Nope. Installing Chrome and its dependencies didn't affect anything (not that I really expected it to.)

      1 Reply Last reply
      0

      1/2

      29 Jul 2016, 22:49

      • Login

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