Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Moved] Desktop release build: module "QtWebKit" is not installed
Qt 6.11 is out! See what's new in the release blog

[Moved] Desktop release build: module "QtWebKit" is not installed

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 3 Posters 5.5k 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.
  • H Offline
    H Offline
    hyponym
    wrote on last edited by
    #1

    Hi,

    It's my first go with Qt and I am trying to make a standalone exe (windows desktop) using Qt SDK 1.1 and Qt Quick.
    When i run the release version of my app I get the following error in the application output:

    <pre>
    file:///C:/Dev/Qt/tRuntime-build-desktop/qml/tRuntime/main.qml:3:1: module "QtWebKit" is not installed
    import QtWebKit 1.0
    ^
    </pre>

    I also see this in Dependency Walker when I profile the exe.
    The application starts but just show the Rectangle (qml below--)

    I pretrty sure have all of the required dlls (using depends.exe and the dependency list page) and added the plugins and imports directories and qt.conf

    I've searched the forums + googled but the results refer to a bug that's been fixed months ago and I'm not exactly sure what to try next.

    my qml :
    @
    import QtQuick 1.0
    import QtWebKit 1.0

    Rectangle {
    width:1000
    height:700
    color:"#ffffff"

    WebView {
       id: web_view1
       anchors { top: parent.top; left: parent.left; right: parent.right; bottom: parent.bottom}
       html: "<p>This is <b>HTML</b>."
    }
    

    }
    @

    main.cpp

    @
    #include <QtGui/QApplication>
    #include "qmlapplicationviewer.h"
    #include <QtWebKit> //explicitly included to see if it makes a difference - no difference

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);

    QmlApplicationViewer viewer;
    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
    viewer.setMainQmlFile&#40;QLatin1String("qml/tRuntime/main.qml"&#41;&#41;;
    viewer.showExpanded();
    
    return app.exec&#40;&#41;;
    

    }
    @

    and I added the following to my .pro file
    QT += webkit

    qt.conf:

    @
    [Paths]
    Plugins=.\plugins
    Imports=.\imports
    @

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      Looks like it can't find plugin. Can you post here structure of your directory with copied libs?

      P.S. Moved thread to another category where it fits better

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hyponym
        wrote on last edited by
        #3

        Hi,
        (re:moved. Thanks, I wasn't sure about whether to go for this forum or desktop.)

        Here's my dir structure.

        @

        tRuntime-build-desktop\release

        12/05/2011 14:46 206,848 tRuntime.exe
        12/05/2011 14:00 DIR imports
        14/04/2011 13:50 43,008 libgcc_s_dw2-1.dll
        12/05/2011 14:02 DIR plugins
        12/05/2011 10:05 DIR qml
        12/05/2011 14:16 47 qt.conf
        14/04/2011 13:49 2,552,320 QtCore4.dll
        14/04/2011 13:50 3,067,392 QtDeclarative4.dll
        14/04/2011 13:49 9,849,856 QtGui4.dll
        14/04/2011 13:49 1,209,344 QtNetwork4.dll
        14/04/2011 13:49 2,177,024 QtScript4.dll
        14/04/2011 13:49 271,872 QtSql4.dll
        14/04/2011 13:49 17,333,760 QtWebKit4.dll
        14/04/2011 13:49 399,360 QtXml4.dll
        14/04/2011 13:49 4,006,400 QtXmlPatterns4.dll

        tRuntime-build-desktop\release\imports

        12/05/2011 14:00 DIR Qt
        12/05/2011 14:01 DIR QtWebKit

        tRuntime-build-desktop\release\imports\Qt

        12/05/2011 14:00 DIR labs

        tRuntime-build-desktop\release\imports\Qt\labs

        12/05/2011 14:00 DIR folderlistmodel
        12/05/2011 14:00 DIR gestures
        12/05/2011 14:00 DIR particles

        tRuntime-build-desktop\release\imports\Qt\labs\folderlistmodel

        14/04/2011 13:50 89,600 qmlfolderlistmodelplugin.dll
        14/04/2011 13:50 890,607 qmlfolderlistmodelplugind.dll

        tRuntime-build-desktop\release\imports\Qt\labs\gestures

        14/04/2011 13:50 25 qmldir
        14/04/2011 13:50 100,864 qmlgesturesplugin.dll
        14/04/2011 13:50 1,238,398 qmlgesturesplugind.dll

        tRuntime-build-desktop\release\imports\Qt\labs\particles

        14/04/2011 13:50 116,736 qmlparticlesplugin.dll
        14/04/2011 13:50 1,369,235 qmlparticlesplugind.dll

        tRuntime-build-desktop\release\imports\QtWebKit

        14/04/2011 13:50 119,296 qmlwebkitplugin.dll

        tRuntime-build-desktop\release\plugins

        12/05/2011 12:16 DIR codecs
        12/05/2011 10:25 DIR designer
        12/05/2011 12:17 DIR imageformats

        tRuntime-build-desktop\release\plugins\codecs

        14/04/2011 13:50 196,096 qcncodecs4.dll
        14/04/2011 13:50 224,768 qjpcodecs4.dll
        14/04/2011 13:50 132,608 qkrcodecs4.dll
        14/04/2011 13:49 210,432 qtwcodecs4.dll

        tRuntime-build-desktop\release\plugins\designer

        14/04/2011 13:50 98,816 phononwidgets.dll
        14/04/2011 13:50 352,768 qaxwidget.dll
        14/04/2011 13:50 68,608 qdeclarativeview.dll
        14/04/2011 13:50 211,968 qt3supportwidgets.dll
        14/04/2011 13:49 70,656 qwebview.dll

        tRuntime-build-desktop\release\plugins\imageformats

        14/04/2011 13:50 83,456 qgif4.dll
        14/04/2011 13:50 83,456 qico4.dll
        14/04/2011 13:50 287,232 qjpeg4.dll
        14/04/2011 13:50 351,744 qmng4.dll
        14/04/2011 13:50 75,776 qsvg4.dll
        14/04/2011 13:49 379,392 qtiff4.dll

        tRuntime-build-desktop\release\qml

        12/05/2011 10:05 DIR tRuntime

        tRuntime-build-desktop\release\qml\tRuntime

        11/05/2011 17:43 383 main.qml

        @

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          Looks like you are lacking qmldir in tRuntime-build-desktop\release\imports\QtWebKit folder

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hyponym
            wrote on last edited by
            #5

            Cool, I've added that in but I get the following error on import QtWebKit 1.0

            File name case mismatch for "C:/users/julian/desktop/release/imports/QtWebKit/qmldir"

            The qmldir file contents are:
            @
            plugin qmlwebkitplugin
            @

            I've read up on module imports and qmldir files and checked all filenames and refs. I also noticed in the docs that qt on windows is case insensitive so it's probably something else anyway...

            Again with googling the error message, I am getting source code / bug lists results. Difficult to fofy :/

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DannyBoy
              wrote on last edited by
              #6

              Is there a solution for this problem?
              Could google any interesting on this issue except this topic...

              1 Reply Last reply
              0

              • Login

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