I'm currently writing a QML application using the Qt SDK 1.1 beta and I'm making use of QtWebKit. The application works fine on Windows and within the simulator, but when I try to run it on a Symbian^3 device (N8), I get the following error:
[Qt Message] file:///C:/Private/ef18eef4/qml/qml/inlinehtml.qml:42:1: plugin cannot be loaded for module "QtWebKit": The file 'C:/resource/qt/imports/QtWebKit/qmlwebkitplugin.qtplugin' is not a valid Qt plugin.
import QtWebKit 1.0
^
This is also the case with any of the QtWebKit examples that I try to run. I installed qt.sis and qtwebkit.sis found in QtSDK\Symbian\sis\Symbian^3\Qt\4.7.2 to the device.
Any ideas on what could be causing this problem? Thanks.
Have you tried:
import Qt 4.7
import org.webkit 1.0
?
Related
I'm running Qt 5.12 on ubuntu 20.04.3. Qt software components are installed with apt. My C++ application uses Qt DataVisualization . I've installed these apt packages for DataVisualization:
libqt5datavisualization5-dev
qml-module-qtdatavisualization
The app compiles OK, but the runtime cannot find the qml module. My qml file contains this import statement as specified by Qt documentation:
import QtDataVisualization 1.15
But at runtime I get the error:
QQmlApplicationEngine failed to load component
qrc:/main.qml:6 module "QtDataVisualization" version 1.15 is not installed
I get a similar runtime error if qml has "import QtDataVisualization 1.14".
Can someone help please? Thanks!
This page indicates that DataVisualization 1.2 should be imported for Qt 5.12 applications - this resolves my issue.
I'm running the official Qt 5.5 SDK on Ubuntu 15.10 and trying to play 3D sounds in QML:
import QtAudioEngine 1.0
The project file:
qt += multimedia
The import statement results in qrc:///Main.qml:1:1: module "QtAudioEngine" is not installed. I'm a bit confused as I can see that the needed libs are in the SDK. What might be wrong here?
It's a bug in the official Qt SDK : https://bugreports.qt.io/browse/QTBUG-51567
Yesterday I installed Qt 5.4 on my windows 7 PC. But I can not build and run any Qt project including those given in Examples section on the Welcome page of Qt Creator 3.3 except for a few. Also, I can’t run any qml file either using this command from cmd: “qmlscene myqmlfile.qml”
Please note that I have added this path to my environment variables:
C:\Qt\Qt5.4.0\5.4\mingw491_32\bin
and Qt installation directory is
C:\Qt
The error message I get in the output window in Qt creator, and in console when running a qml file from cmd, is as follows:
QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
Previously, I used PyQt5, and ran qml files using the command
qmlscene myqmlfile.qml
without any problem. Then installed Qt Creator 3.3 to run Qt projects, but failed (got some error saying problem in qmake). Finally I uninstalled PyQt5 and Qt Creator 3.3, downloaded Qt 5.4 and installed it, but still could not run Qt projects.
I found in some website, that I need open GL 2.0 to run Qt projects in Qt 5.4. How do I make sure that I have openGL 2.0? (I checked with GPU-Z and it shows my shader model 2.0 and I don’t know if it has anything to do with OpenGL :( )
Please help me correct whatever is wrong with my Qt installation. This is freaking annoying.
Make sure you have Intel Graphics Driver installed from Intel. Microsoft's default drivers do not include OpenGL support.
I have updated my Qt version to
Qt Creator 2.7.1
Based on Qt 5.0.2 (32 bit)
Built on Sep 6 2013 at 08:23:22
Still I am not able to use Qt Quick controls and Qt Quick 2.0. I get this error
module "QtQuick" version 2.0 is not installed
import QtQuick 2.0
I have imported QtQuick 2.0 still it's not working.
The solution might be adding:
QT += quick
in your .pro file. If it doesn't help please install this.
I installed Qt SDK 1.2.1. when I write a program using QtQuick and I want to use of QtMobility.location 1.2 the following error will occur :
module "QtMobility.location" is not installed
Can anyone help me ? When I install Qt sdk , is Qt mobility installed automatically ?
Be sure to declare the following in the pro file:
symbian:TARGET.CAPABILITY += Location
MOBILITY +=location
As far as i remember - Qt mobility can be checked to be installed or not, check Qt SDK update manager.