Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt Creator cannot find Qt WebKit

Qt Creator cannot find Qt WebKit

Scheduled Pinned Locked Moved Unsolved Qt WebKit
5 Posts 3 Posters 2.1k Views
  • 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.
  • D Offline
    D Offline
    dauuser
    wrote on last edited by A Former User
    #1

    Hy @all
    When I'm trying to start a project the QQmlApplicationEngine fails to load a component.
    My code of the qml file looks like this:

    import QtWebkit 3.0 //or 1.0
    
    WebView{
                id: webView
                anchors.top: buttons.bottom
                anchors.right: parent.right
                anchors.left: parent.left
                anchors.bottom: parent.bottom
    }
    

    But when I want to run my project, I get the following error:

    qrc:/main.qml:132 Type MainPage unavailable
    qrc:/MainPage.qml:152 Type OffersPage unavailable
    qrc:/OffersPage.qml:184 Type TabMarketingPreview unavailable
    qrc:/tabs/TabMarketingPreview.qml:2 module "QtWebKit" is not installed
    

    I've installed all tools in the installion guide and already tried to do it manually (see here)
    But it doesn't change a thing. Some help would be nice here.

    Specs: Ubuntu 16.04, Qt 5.7 (Android)

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by
      #2

      Does it work if you replace

      import QtWebkit 3.0
      

      with

      import QtWebView 1.0
      
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        There's no QtWebKit module for Android. It's a platform restriction. You should rather use the QtWebView module.

        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
        • D Offline
          D Offline
          dauuser
          wrote on last edited by
          #4

          thank you @mchinand and @SGaist, it works now. I would never have figured that out

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

            You're welcome !

            Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

            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

            • Login

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