Qt QML modules, how to import them and know what to import & QtMultimediaKit 1.0

tuxtoriel

In the last question, (How to insert Video element in my Ubuntu application?) I thought that I could create the Video element with the QtMultimediaKit1 . But I tried to import QtMultimediaKit 1.0 and it doesn't worked! I eventually found out that I could import it with import QtMultimedia 5.0.

Although it was working, I managed to find it in the Software Center. I noticed that the modules started with "libqt...". And there it is! Or there THEY are! Because I found out that the installed module (QtMultimediaKit 1.0) and the imported one (QtMultimedia 5.0) are two different things!

QtMultimediaKit 1.0

not the same as

QtMultimedia 5.0

The compiling error is the same as in the last question when I use QtMultimediaKit 1.0.

What are the differences between both of them?

Why wont the QtMultimediaKit 1.0 work?

I saw some documentation about it :

I tried with QtMultimediaKit 1.1 instead of 1.0 but it's the same problem:

(file path)/ConfigureButtonTab.qml:4 module "QtMultimediaKit" is not installed

/usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene exited with code 255

I'm still under 13.10 and with Qt Creator 2.8.1 based on Qt 5.0.2 (GCC 4.7.3, 64 bit) built on Sep 16 2013 at 12:02:18.

P.S.: A little additionnal question: how can I know what to install to have the right module? For instance, the 3D module: I have something installed but I do not know what to import and if it's realy the right module (the installed-one is: Qt 3D module: libqt53d5)

Thank you! : )

Seth

This is because Ubuntu Touch uses Qt 5 and qtmultimediakit is an older Qt Mobility module. See this quote from Qt's website:

The Qt Multimedia module in Qt 5 combines (and replaces) two older modules, namely the Qt Multimedia module from Qt 4.x, and Qt Multimedia Kit module from Qt Mobility. Existing code that uses Qt Multimedia from Qt 4 can be ported with minimal effort, but porting code that uses Qt Multimedia Kit may be a more involved process. The changed features section highlights changes relevant to porting.

In other words, the Qt Multimedia module in Qt 5 is the successor to QtMultimediaKit. Since Ubuntu Touch only uses Qt 5 I don't think QtMultimediaKit would work.

The reason your import didn't work was because the QtMultiMediaKit files are stored in /usr/lib/<architecture>/ while the SDK only looks in the qt5 folder of /usr/lib/<architecture>/.

Long story short, using the Qt 5 Multimedia Module is the right way of doing it!

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Qt QML modules, how to import them and know what to import & QtMultimediaKit 1.0

From Dev

PowerShell Modules - Where to store custom built modules and how to import them using profile.ps1

From Dev

What are AssemblyKeys used for, and how to import them?

From Dev

How to import the QML-Book examples into QT Creator 3.4.0?

From Dev

How to use QML_IMPORT_PATH with Qt Cmake Project?

From Dev

How to import modules that import other modules without using import *

From Dev

How to import modules that import other modules without using import *

From Dev

How to know what is being written in Python during import module?

From Dev

How to dynamically import modules with exec

From Dev

how to import modules that require arguments

From Dev

how to import modules that require arguments

From Dev

How to import modules in IPython Clusters

From Dev

how to import scripts as modules in ipyhon?

From Dev

How to import tested modules in tests?

From Dev

from ... import OR import ... as for modules

From Dev

How to import modules(using relatively big packages inside them) in application in Choregraphe?

From Dev

What is the scheme syntax to import modules (guile especially)?

From Dev

What is the scheme syntax to import modules (guile especially)?

From Dev

Import all modules in one folder and use them by one of its attributes

From Dev

How to write conditional import statements in QML?

From Dev

How to import javascript file to qml worker script

From Dev

(Python) Why not import modules in function instead of at the beginning and best way to import them?

From Dev

How to create separate files for functions, then import them?

From Dev

How do I know the path for Java import?

From Dev

Python: How to share import between modules?

From Java

How to import js-modules into TypeScript file?

From Dev

how to properly create and import node modules in typescript

From Java

How to import custom modules in google colab?

From Dev

How do unit tests import the modules they test?

Related Related

  1. 1

    Qt QML modules, how to import them and know what to import & QtMultimediaKit 1.0

  2. 2

    PowerShell Modules - Where to store custom built modules and how to import them using profile.ps1

  3. 3

    What are AssemblyKeys used for, and how to import them?

  4. 4

    How to import the QML-Book examples into QT Creator 3.4.0?

  5. 5

    How to use QML_IMPORT_PATH with Qt Cmake Project?

  6. 6

    How to import modules that import other modules without using import *

  7. 7

    How to import modules that import other modules without using import *

  8. 8

    How to know what is being written in Python during import module?

  9. 9

    How to dynamically import modules with exec

  10. 10

    how to import modules that require arguments

  11. 11

    how to import modules that require arguments

  12. 12

    How to import modules in IPython Clusters

  13. 13

    how to import scripts as modules in ipyhon?

  14. 14

    How to import tested modules in tests?

  15. 15

    from ... import OR import ... as for modules

  16. 16

    How to import modules(using relatively big packages inside them) in application in Choregraphe?

  17. 17

    What is the scheme syntax to import modules (guile especially)?

  18. 18

    What is the scheme syntax to import modules (guile especially)?

  19. 19

    Import all modules in one folder and use them by one of its attributes

  20. 20

    How to write conditional import statements in QML?

  21. 21

    How to import javascript file to qml worker script

  22. 22

    (Python) Why not import modules in function instead of at the beginning and best way to import them?

  23. 23

    How to create separate files for functions, then import them?

  24. 24

    How do I know the path for Java import?

  25. 25

    Python: How to share import between modules?

  26. 26

    How to import js-modules into TypeScript file?

  27. 27

    how to properly create and import node modules in typescript

  28. 28

    How to import custom modules in google colab?

  29. 29

    How do unit tests import the modules they test?

HotTag

Archive