Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Deploy QML with QtMobility
Forum Updated to NodeBB v4.3 + New Features

Deploy QML with QtMobility

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 3.1k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    chrisQT
    wrote on last edited by
    #1

    Hello all,

    I'm very new to the QML/Qt/QtQuick world and before I was allowed to fall really, really in love with it, I had to do, as usual, some tests... A very important point for us is a Video and Audio element in QML. So I found out, that I need QtMobility. After some compiling problems (I'm on OS X, "http://bugreports.qt.nokia.com/browse/QTMOBILITY-688":http://bugreports.qt.nokia.com/browse/QTMOBILITY-688), I made it with:
    @./configure -modules multimedia
    make
    make install@
    When I create a QML Quick UI, it works. I can use the Video element directly, without adding anything to .pro file
    @import QtMultimediaKit 1.1@
    But for deployment I guess I have to create a Qt Quick Application. So when adding
    @CONFIG += mobility
    MOBILITY = multimedia@
    to the project file and moving the formerly running qml file to the Qt Quick Application qml folder, it gives me an
    @module "QtMultimediaKit" is not installed
    import QtMultimediaKit 1.1 @

    ...but I know, it must be installed. So where do I have to add something else to make it running?

    Thanks and regards,
    chrisQT

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chrisQT
      wrote on last edited by
      #2

      To answer my question:
      Just use the 'Import an existing .qml file' in the New Qt Quick Application Wizard. Damn, that was to easy...

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BjornE
        wrote on last edited by
        #3

        Hi
        I have the same problem. Do not understand what you did to get it to work.
        Can you please be more specific how you solved the problem.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          chrisQT
          wrote on last edited by
          #4

          Sure:
          If you have a QML Application built in QtCreator with File->New File or Project...-
          Qt Quick Project- Qt Quick UI and want to turn this in a Standalone C++ Application, do this
          File->New File or Project...- Qt Quick Project- Qt Quick Application Do everything like you'd usually do, but when it asks for the Main QMl file, choose import an existing .qml file. Here you tell him, which is your main qml file. After that it imports your project structure and it works...at least that did it for me.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            BjornE
            wrote on last edited by
            #5

            Hi
            I tried what you suggested but I still get:
            module "QtMultimediaKit" is not installed
            import QtMultimediaKit 1.1

            Any other ideas?

            1 Reply Last reply
            0
            • C Offline
              C Offline
              chrisQT
              wrote on last edited by
              #6

              And your .qml file works in the QML Viewer without problems?

              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