Forums

OverviewV-Play 2 Support (Qt 5) › what is this error in designer : QtWebView is Not Installed

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #14183

    Mafhoom

    I checked these :
    qt-opensource-windows-x86-msvc2015_64-5.7.0
    qt-opensource-windows-x86-msvc2015-5.7.0.exe
    V-PlayInstaller.exe <–Last Edition

     

    I create a simple test with Qt With webview component

     

    In Quick (QML) mode I can not use WebView in designer.

     

    My Pro file:

    QT += qml quick  webengine network webview

    CONFIG += c++11

     

     

    My main.cpp:


    #include <QtWebView/QtWebView>
    #include <QtWebEngine/QtWebEngine>
    #include <QtWidgets/QtWidgets>
    //#include <QtWebEngineWidgets/QtWebEngineWidgets>

    int main(int argc, char *argv[])
    {
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QGuiApplication app(argc, argv);
    QtWebEngine::initialize();

     

    My Page1Form.ui.qml:

    import QtQuick 2.7
    import QtQuick.Controls 2.0
    import QtQuick.Layouts 1.0
    import QtWebView 1.1

     

    But in designer I can not find WebView component and It shows me a yellow warning :

    Module ‘QtWevView’ is not installed.

     

    Any help?

     

     

     

    #14185

    Günther
    V-Play Team

    Hi Mafhoom,

    based on the error “Module QtWebView” is not installed, I guess you are missing the WebEngine/WebView components, which can be installed with the MaintenanceTool in the installation directory of the framework.

    Open the MaintenanceTool, select “add / remove components” and install the WebEngine components. (I think since Qt 5.7 the WebView module is installed along with the WebEngine components, before it was selectable/installable separately).

    Hope this helps!

    Best,
    Günther

    #14206

    Mafhoom

    thank you
    I tried MaintenanceTool and Installed

    Qt 5.7:

    Qt WebEngine

    Qt 5.6:
    Qt WebView

     

    then again I used Clean All and Run Qmake and at the end Rebuild all

    But The problem is there again:

    In Qt Visual Desgin mode :

    –>Navigator–>Item has a yellow warning with a tooltip(Hint) :

    Found Not working Imports:File:///E:/Temp/Page1Form.ui.qml module “QtWebView” is not installed

     

    #14215

    Günther
    V-Play Team

    Hi Mafhoom,

    When you use the WebView in your code, does Qt find the module and does it work? If yes, then it should correctly be installed.

    If the designer still reports the error, then I guess that’s just an issue with the designer. The designer also often has troubles if there’s already a lot of logic and different components in your QML code. So we usually recommend to use the designer mainly in the initial creation/design phase of the components you create.

    I personally think that it’s faster to directly code in QML anyway. 😉

    Best,
    Günther

    #14237

    Mafhoom

    I think Found Why;

    Because it is not free any more

    When I want to install I saw this Warning:

    Qt WebView:
    Note: Not Licensed under LGPLv2.1
    License options: LGPLv3, GPLv2.0 or Later, Commercial

     

    #14405

    Günther
    V-Play Team

    Hi Mafhoom!

    As far as I can tell, the module is still free, even if not licensed under LGPLv2.1. The LGPLv3 license and also the GPLv2.0 are free licenses.
    Using the module should be possible for the free Qt version then.

    You can also ask in the official Qt forums about the WebView, they surely have more information about this.

    Best,
    Günther

Viewing 6 posts - 1 through 6 (of 6 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support