WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: qt-5 missing QWebElementCollection  (Read 6146 times)

Offline andyj

  • Hero Member
  • *****
  • Posts: 1020
qt-5 missing QWebElementCollection
« on: August 02, 2019, 12:38:37 PM »
QWebElementCollection and QWebElement are missing, presumably from qt-5.x-webkit-dev. Subsurface is looking for them.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: qt-5 missing QWebElementCollection
« Reply #1 on: August 03, 2019, 05:04:28 AM »
I checked back to the two last times I compiled qt-5.x and no files named *QWebElement* were installed.

Looking at:
Code: [Select]
Qt WebEngine:
  Embedded build ......................... no
  Pepper Plugins ......................... yes
  Printing and PDF ....................... yes
  Proprietary Codecs ..................... no
  Spellchecker ........................... yes
  Native Spellchecker .................... no
  WebRTC ................................. yes
  Use System Ninja ....................... no
  Geolocation ............................ yes
  Use v8 snapshot ........................ yes
  Use ALSA ............................... yes
  Use PulseAudio ......................... yes
  Optional system libraries used:
    re2 .................................. no
    icu .................................. no
    libwebp, libwebpmux and libwebpdemux . yes
    opus ................................. yes
    ffmpeg ............................... no
    libvpx ............................... no
    snappy ............................... no
    libsrtp .............................. no
    glib ................................. yes
    zlib ................................. yes
    minizip .............................. no
    libevent ............................. no
    jsoncpp .............................. no
    protobuf ............................. no
    libxml2 and libxslt .................. no
    lcms2 ................................ yes
    png .................................. yes
    JPEG ................................. yes
    harfbuzz ............................. yes
    freetype ............................. yes
..perhaps it is due to one of the missing deps, but, if so, which one?

Offline andyj

  • Hero Member
  • *****
  • Posts: 1020
Re: qt-5 missing QWebElementCollection
« Reply #2 on: August 03, 2019, 06:04:00 AM »
They exist on my Slackware host:

Code: [Select]
$ locate QWebElement
/usr/lib/qt/include/QtWebKit/QWebElement
/usr/lib/qt/include/QtWebKit/QWebElementCollection
/usr/lib64/qt/include/QtWebKit/QWebElement
/usr/lib64/qt/include/QtWebKit/QWebElementCollection

and they existed in qt-4.x-dev, so I'm only guessing they should be in qt-5.x-webkit-dev. Must be a new requirement for subsurface 4.9, or I built 4.7 it without webkit. I don't have a build script for this extension yet so I can't say.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: qt-5 missing QWebElementCollection
« Reply #3 on: August 03, 2019, 10:10:20 AM »
https://doc.qt.io/qt-5/qtwebenginewidgets-qtwebkitportingguide.html
Quote
The Qt WebKit classes and methods in this list will not be available in Qt WebEngine. ... QWebElement

So it's a class of the older and deprecated QWebKit. Qt has moved to QWebEngine (chrome based), and apps presumably will update to that.
The only barriers that can stop you are the ones you create yourself.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1020
Re: qt-5 missing QWebElementCollection
« Reply #4 on: August 03, 2019, 03:34:04 PM »
OK, but QtWebkit is deprecated, not dead, so at least it should still be usable for now until the app is updated. I don't know which deps would bring it in. Maybe XML/XSLT (lobbing a dart)?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: qt-5 missing QWebElementCollection
« Reply #5 on: August 04, 2019, 03:39:33 AM »
qt-5.x-webkit-dev contains the following:

/usr/local/include/qt5/QtWebKit/5.9.0/QtWebKit/private/qwebelement_p.h
/usr/local/include/qt5/QtWebKit/qwebelement.h

..but nothing else of a similar name.

The source:

http://tinycorelinux.net/10.x/x86_64/tcz/src/qt-5.x-webkit/

..does contain the following:

qtwebkit-opensource-src-5.9.0/include/QtWebKit/QWebElementCollection
qtwebkit-opensource-src-5.9.0/include/QtWebKit/QWebElement

..where:
Code: [Select]
$ cat qtwebkit-opensource-src-5.9.0/include/QtWebKit/QWebElement
#include "qwebelement.h"
$ cat qtwebkit-opensource-src-5.9.0/include/QtWebKit/QWebElementCollection
#include "qwebelement.h"

..so maybe you could create these files and see if things work?

Offline andyj

  • Hero Member
  • *****
  • Posts: 1020
Re: qt-5 missing QWebElementCollection
« Reply #6 on: August 04, 2019, 08:19:29 AM »
That seems to do the trick. It starts, but I don't have my dive computer handy to test it.