Skip to content

QtWebEngine

Discussions and questions on QtWebEngine
1.3k Topics 4.0k Posts
  • Building qtwebengine is error about python

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    Y
    This is problem is ok ! Find the "qmake_extras.gypi" (in qt-everywhere-opensource-src-5.4.0/qtwebengine/src/core/): { 'make_global_settings': [ ['CC.host', '/usr/bin/gcc'], ['CXX.host', '/usr/bin/g++'], ['LD.host', '/usr/bin/g++'], ['CC', '/opt/codesourcery/bin/arm-none-linux-gnueabi-gcc'], ['CXX', '/opt/codesourcery/bin/arm-none-linux-gnueabi-g++'], ['LD', '/opt/codesourcery/bin/arm-none-linux-gnueabi-g++ -lz -ldl -lpng -lglib-2.0 -lgthread-2.0 -ljpeg -lsqlite3 -lxml2'], ], 'target_defaults': { 'target_conditions': [ ['_toolset=="target"', { 'include_dirs': [ '/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include', '/usr/local/tslib/tslib1.0/include', '/opt/codesourcery/arm-none-linux-gnueabi/libc/usr/include', '/usr/include', '/home/ubqt/usr/local/include', '/home/ubqt/icu/source//common', '/opt/codesourcery/lib/gcc/arm-none-linux-gnueabi/4.8.3/include/', ], 'cflags': [ '-I/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include/dbus-1.0', '-I/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/lib/dbus-1.0/include', ], }], ], }, } ['CC', '/opt/codesourcery/bin/arm-none-linux-gnueabi-gcc'], ['CXX', '/opt/codesourcery/bin/arm-none-linux-gnueabi-g++'], ['LD', '/opt/codesourcery/bin/arm-none-linux-gnueabi-g++ -lz -ldl -lpng -lglib-2.0 -lgthread-2.0 -ljpeg -lsqlite3 -lxml2'], ], 'target_defaults': { 'target_conditions': [ ['_toolset=="target"', { 'include_dirs': [ '/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include', '/usr/local/tslib/tslib1.0/include', '/opt/codesourcery/arm-none-linux-gnueabi/libc/usr/include', '/usr/include', '/home/ubqt/icu/source//common', '/opt/codesourcery/lib/gcc/arm-none-linux-gnueabi/4.8.3/include/', '/home/ubqt/libcap/include', ], 'cflags': [ '-I/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include/dbus-1.0', '-I/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/lib/dbus-1.0/include', ], }], ], }, } The context is repetition. Just delete the repetition context. Before delete it, please check the "include_dirs". Sometimes I modify include path in my qmake.conf. When make qtwebengine, the "qmake_extras.gypi" will load qmake.conf again. So, please check different the "include_dirs". If there are different, modify it, Just like: { 'make_global_settings': [ ['CC.host', '/usr/bin/gcc'], ['CXX.host', '/usr/bin/g++'], ['LD.host', '/usr/bin/g++'], ['CC', '/opt/codesourcery/bin/arm-none-linux-gnueabi-gcc'], ['CXX', '/opt/codesourcery/bin/arm-none-linux-gnueabi-g++'], ['LD', '/opt/codesourcery/bin/arm-none-linux-gnueabi-g++ -lz -ldl -lpng -lglib-2.0 -lgthread-2.0 -ljpeg -lsqlite3 -lxml2'], ], 'target_defaults': { 'target_conditions': [ ['_toolset=="target"', { 'include_dirs': [ '/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include', '/usr/local/tslib/tslib1.0/include', '/opt/codesourcery/arm-none-linux-gnueabi/libc/usr/include', '/usr/include', '/home/ubqt/usr/local/include', '/home/ubqt/icu/source//common', '/opt/codesourcery/lib/gcc/arm-none-linux-gnueabi/4.8.3/include/', '/home/ubqt/libcap/include', ], 'cflags': [ '-I/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include/dbus-1.0', '-I/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/lib/dbus-1.0/include', ], }], ], }, } Save "qmake_extras.gypi", continue make.
  • Qt 5.6 custom user agent not working

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    T
    Yes I figured it out... The problem is a lot of new documentation (esp. 5.6) doesn't provide even the most simple usage examples even for such a simple thing as changing the user-agent. Marking as solved.
  • QtWebEngine duplicate touch events

    9
    0 Votes
    9 Posts
    4k Views
    BambiB
    Am suffering from the same issue.. still havent checked if it changed in 5.6
  • HTML Parse by QtWebEngine

    Unsolved
    1
    0 Votes
    1 Posts
    980 Views
    No one has replied
  • QWebEngineView runJavaScript() problem

    Unsolved
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QtWebEngine 5.7 uses what version of Chromium?

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    E
    @SGaist Thank you!
  • Using QWebEngineUrlRequestInterceptor to get AJAX POST data?

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QWebEngineView crashes on view->page() or view->load(url)

    Solved
    2
    1 Votes
    2 Posts
    2k Views
    V
    I found that I was missing several files that, if not present, will cause the app to crash when QWebEngine is used: qtwebengine_resources.pak qtwebengine_resources_100p qtwebengine_resources_200p.pak.pak QtWebEngineProcess.exe icudtl.dat If I use the windeployqt.exe tool, it properly places these files with my exe.
  • Qt 5.6 QtWebEngine crashes on launch in Xcode on OSX 10.11

    9
    0 Votes
    9 Posts
    3k Views
    SGaistS
    Yes, you can mark it a solved when you can confirm that you don't have the crash anymore e.g. with Qt 5.6 RC or the 5.6.0 release.
  • Webengine - open in external browser

    Solved
    5
    0 Votes
    5 Posts
    6k Views
    G
    Ok, I got it worked out. I just needed to use the following: main.cpp ...some code... QPointer<MyQWebEnginePage> thisPage = new MyQWebEnginePage; ui->WebEngineView->setPage(thisPage); ...some more code... myqwebenginepage.h #ifndef MYQWEBENGINEPAGE_H #define MYQWEBENGINEPAGE_H #include <QWebEnginePage> #include <QDesktopServices> class MyQWebEnginePage : public QWebEnginePage { Q_OBJECT public: MyQWebEnginePage(QObject* parent = 0) : QWebEnginePage(parent){} bool acceptNavigationRequest(const QUrl & url, QWebEnginePage::NavigationType type, bool isMainFrame) { if (type == QWebEnginePage::NavigationTypeLinkClicked) { QDesktopServices::openUrl(url); return false; } return true; } }; #endif // MYQWEBENGINEPAGE_H Thanks for the feedback.
  • How to build QtWebEngine for android

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    raven-worxR
    @itviewer AFAIK QtWebEngine is only available for desktop platforms
  • "Not allowed to load local resource" for iframe, how to disable web security ?!

    Unsolved
    5
    0 Votes
    5 Posts
    11k Views
    M
    @knt261 this solution not work for me; I test this solution in Qt5.6
  • Stepping into QtWebEngineCore

    Unsolved
    1
    0 Votes
    1 Posts
    763 Views
    No one has replied
  • Sub-frames access

    7
    1 Votes
    7 Posts
    2k Views
    Y
    js jquery example: $("iframe").contents().find("...")
  • QtWebEngine Flash (pepper) plugin

    7
    0 Votes
    7 Posts
    8k Views
    U
    Qt WebEngine Adobe Flash Player Plugin support https://doc-snapshots.qt.io/qt5-5.6/qtwebengine-platform-notes.html
  • How to set a viewport with QtWebEngine?

    Unsolved viewport qwebengine qwebengineview
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to build 32 bit QtWebEngine on Mac

    Solved mac 32 bits
    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi and welcome to devnet, AFAIK from the Chromium project, builds for 32bit Macs have ended by the end of 2014. Snow Leopard was the last version supporting 32 Bit processors.
  • Cant Run Application Created With QT5 And VS2013 In Windows XP

    Unsolved
    5
    0 Votes
    5 Posts
    3k Views
    C
    You can try it that turn the Hardware acceleration off In Windows XP
  • QtWebEngine on git 5.6 branch build failed on Windows 7 whit MSVC2013

    Solved
    1
    0 Votes
    1 Posts
    700 Views
    No one has replied
  • How to cross compile qtwebengine in embedded machine (linux arm) ?

    Unsolved
    15
    0 Votes
    15 Posts
    11k Views
    Y
    @SGaist Thanks !