Recently, I have been studying on Qt5 Audio and followed this youtube lecture.
https://www.youtube.com/watch?v=Dh6ax1xVJD0
During the course I had to put the line into one of 'qml' file
import QtMultimedia 5.0
The name "QtMultimedia 5.0" came up automatically so did the help menu.
However, the line has red underline that says "QML module not found Import paths:..."
How may I fix this problem?
OS: Ubuntu
Project build steps: Applications => "Qt Quick UI" => "Qt Quick 2.0"
Thank you for reading my story.
JB
Try to add:
QT += multimedia
to your .pro file
try this command export LD_LIBRARY_PATH=/path-to-your-qt-installation/Qt5.9.2/5.9.2/gcc_64/lib it helped me with similar issue with PyQt and QML
Related
I am new to Qt Quick for Python and I have a problem importing QtCharts in the QML file.
This image explain my whole Problemmodule QtCharts not installed
I allready verified the installation from the Qt Maintenance Tool.
Do you have any Suggestion ?
Thanks !
I am using Qt 6.4.1, and in QtCreator I am trying to import the Qt6 Multimedia module, but I get the following error:
The error says "Found package configuration file: C:/Qt/qt/6.4.1/mingw_64/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find required Qt component "Multimedia". Expected config file at "C:/Qt/qt/6.4.1/mingw_64/lib/cmake/Qt6Multimedia/Qt6MultimediaConfig.cmake" does NOT exist"
It appears my Qt version does not have the folder in my cmake directory:
Why is this? Have I missed something/got something wrong or is there no support for the Multimedia module in Qt6.4.1? What can I do to import this module? Thanks in advance.
You need to check QtMultimedia in QtMaintenanceTool when you are installing Qt. See the screenshot:
If it is not available for your compiler, then you have no other option than build Qt with QtMultimedia on your own.
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
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 just have installed Qt 4 on windows 7. I am now in a bit of a confusion
How do I get to install OpenGL so that it works with QT? Is there an installer for OpenGL?
Qt docs. say it has support for OpenGL, but when I include QTOpenGL and build, the compiler issues an error of "No such file or directory"
Thanks for the reply in advance!
Are you sure you followed this to the letter? You need to include <QtOpenGL> and set the QT += opengl option in your pro file.
What tool chain are you using? (Visual Studio, Qt Creator/g++) You need to specify somewhere in your project settings that you want to use the QtOpenGL module. This will result in a line in your .pro file similar to this:
QT = core gui opengl
This causes qmake to add the proper include path when invoking the compiler (I believe).
added the line QT += opengl to the .pro file