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
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 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.
I'm trying to re-build Qt 4.8.0 in Windows statically. I'm following the documentation here: http://doc.qt.nokia.com/4.8-snapshot/deployment-windows.html. After typing config -static in a mingw terminal at C:\QtSDK\Desktop\Qt\4.8.0\mingw, I get the following error:
Running syncqt...
I couldn't find a pro file for QtCore module
syncqt failed, return code 2
I've been looking all over and can't figure out where to go from here! IMO the Qt documentation is not very good in this regard.
Thanks!
Marlon
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
?