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. Examples not working loading the web content
Forum Updated to NodeBB v4.3 + New Features

Examples not working loading the web content

Scheduled Pinned Locked Moved Solved QtWebEngine
example errorexamplesexamplebugweb
2 Posts 1 Posters 699 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.
  • M Offline
    M Offline
    magladko
    wrote on 22 May 2023, 18:42 last edited by
    #1

    Some of the examples using QtWebEngine does not work for me.
    It seems like the web engine component is not loading properly.

    Some examples:

    • WebEngine Widgets Maps Example:
      1 warning: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
      does not load any content
    • quick nano browser (as the previous)
    • etc.

    Though for example the Map viewer works fine for the osm and every map other than "StreetMap".

    Qt v.5.12.2 (same for v.5.15.2)
    Ubuntu 22.04

    Thanks!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      magladko
      wrote on 24 May 2023, 19:22 last edited by
      #2

      So if anyone finds the same issue, the workaround can be found here: https://github.com/probonopd/linuxdeployqt/issues/554

      I just put the line:
      qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu --no-sandbox");

      And everything started to work.

      1 Reply Last reply
      0
      • M magladko has marked this topic as solved on 24 May 2023, 19:22

      2/2

      24 May 2023, 19:22

      • Login

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