Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. "No WebView plug-in found!" with Qt 6.2.3 on Linux
Forum Updated to NodeBB v4.3 + New Features

"No WebView plug-in found!" with Qt 6.2.3 on Linux

Scheduled Pinned Locked Moved Solved Qt 6
5 Posts 2 Posters 1.0k 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.
  • L Offline
    L Offline
    liteyear
    wrote on last edited by
    #1

    I've build Qt 6.2.3 from source, passing -skip qtwebengine to ./configure to work around some showstoppers.

    I have then been able to qmake and make a simple QML based project and run it on Linux with the -platform eglfs flag. When I was targeting Raspberry Pi OS, I'm sure the webview appeared. Now I'm targeting a Yocto based distribution, the dreaded "No WebView plug-in found!" error is back, and no webview appears.

    I've tried every variation of QT += I can think of, lots of permutations of QtWebView::initialize(); and reviewed the Qt configure and make over and over looking for clues. I see /qt/plugins does not contain webview, however all the usual libqtwebviewquickplugin.so and libQt6WebView.so.6/libQt6WebViewQuick.so do appear in the right spots.

    I've attached the output when I run my app with QT_DEBUG_PLUGINS=1 set. Argh, not enough permissions. Hang on... here it is as a gist.

    What it required to get WebView to work on Linux in Qt 6.2, with WebEngine disabled?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can't have it without on Linux as stated in the module documentation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • L Offline
        L Offline
        liteyear
        wrote on last edited by
        #3

        Hmm, I see. The configure script disagrees:

        Checking dependencies of 'qtwebview'
        Skipping optional dependency 'qtwebengine' of 'qtwebview', because building 'qtwebengine' was explicitly disabled.
        

        I thought for sure I had this working on RPiOS, and all the way from Qt configure to project build to app run, I'm led to believe I could. But that sounds pretty definitive, so perhaps it was just wishful thinking...

        An excerpt from my notes:

        There was some doubt about whether qtwebview had dependencies on qtwebengine, but I've proven by way of a running GUI on the Raspberry Pi 3B+ plus 7" Touchscreen, in X, VNC and bare console forms, that qtwebengine is not required.

        It's been a long, long night, so maybe I got my wires crossed.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Something may have changed and the doc is wrong. From what I remember, QtWebView makes use of the OS provided web API and on Linux (and Windows for that matter) there's not an OS based API that provides that.

          I would be happy to be proven wrong though.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • L Offline
            L Offline
            liteyear
            wrote on last edited by
            #5

            Just to close the loop, I was unable to prove you wrong, @SGaist . I bit the bullet and recompiled with qtwebengine enabled (no small feat!) and everything started working the way I remembered it. So I think I may have led myself astray with optimistic recall.

            1 Reply Last reply
            1

            • Login

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