Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt on QNX
  4. [SOLVED] Several Qt problem on BB Qt

[SOLVED] Several Qt problem on BB Qt

Scheduled Pinned Locked Moved Qt on QNX
25 Posts 7 Posters 18.3k 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.
  • B Offline
    B Offline
    Bomb3rman
    wrote on last edited by
    #14

    What about the qml files...how are these packaged?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AlterX
      wrote on last edited by
      #15

      They are packaged in the normal way...just added in the project file

      Qt Ambassador
      Real-time cooperative teams: http://www.softairrealfight.net
      Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

      https://codereview.qt-project.org/...

      1 Reply Last reply
      0
      • D Offline
        D Offline
        daliusd
        wrote on last edited by
        #16

        AlterX, bar-descriptor.xml file is important as well. Adding files into pro file is not enough. Look how sample app is done.

        White rectangle means that something has failed to load or there is error

        Choose one orientation in bar-descriptor.xml for now. There is bug (some other recent thread) that prevents orientation change - it is fixed and will be available with next NDK release.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AlterX
          wrote on last edited by
          #17

          I'm creating an app from scratch...ok I'm able to show a background in portrait mode, but when I just put
          @
          import QtMultimediaKit 1.1
          @

          The screen returns to be white (doesn't matter if I put multimedia in .pro file)

          Qt Ambassador
          Real-time cooperative teams: http://www.softairrealfight.net
          Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

          https://codereview.qt-project.org/...

          1 Reply Last reply
          0
          • B Offline
            B Offline
            borut123
            wrote on last edited by
            #18

            QtMultimediaKit should be there. However, not everything is implemented yet (like the camera).

            I am getting "module "QtMultimediaKit" is not installed" error.

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bomb3rman
              wrote on last edited by
              #19

              I am getting “module “QtMultimediaKit” is not installed” error.

              Are you using the simulator or a dev alpha?
              Did you set a qml import path in the bar descriptor file?

              1 Reply Last reply
              0
              • A Offline
                A Offline
                AlterX
                wrote on last edited by
                #20

                [quote author="Bomb3rman" date="1357823744"]
                Are you using the simulator or a dev alpha?
                Did you set a qml import path in the bar descriptor file?[/quote]

                I'm using a alpha dev B. What do you mean with set import in bar descriptor?
                I've set qml dir in bar descriptor.

                Qt Ambassador
                Real-time cooperative teams: http://www.softairrealfight.net
                Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                https://codereview.qt-project.org/...

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  Bomb3rman
                  wrote on last edited by
                  #21

                  Are you having sth like this in the bar descriptor? If the answer is yes, how does this line of code look like? And if no, can you add this line and try it again?

                  <env var="QML_IMPORT_PATH" value="/usr/lib/qt4/imports"/>

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    AlterX
                    wrote on last edited by
                    #22

                    [quote author="Bomb3rman" date="1357833115"]Are you having sth like this in the bar descriptor? If the answer is yes, how does this line of code look like? And if no, can you add this line and try it again?

                    <env var="QML_IMPORT_PATH" value="/usr/lib/qt4/imports"/>[/quote]

                    Wow...now it works!
                    that's very strange; I had the same line but value was "/app/native/imports".
                    The other lines are as shown:
                    <env value="app/native/plugins:/usr/lib/qt4/plugins" var="QT_PLUGIN_PATH"/>
                    <env value="app/native/lib:/usr/lib/qt4/lib/" var="LD_LIBRARY_PATH"/>

                    Qt Ambassador
                    Real-time cooperative teams: http://www.softairrealfight.net
                    Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                    https://codereview.qt-project.org/...

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      Bomb3rman
                      wrote on last edited by
                      #23

                      /app/native/imports is a folder inside your application sandbox. If you don't deploy Qt yourself, than this folder does not contain the plugins. Skiping the line with <env var=“QML_IMPORT_PATH” value=”...> completely should be fine as well.

                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        Traxx
                        wrote on last edited by
                        #24

                        Sorry for digging old topic up.I already copy example code but why i still encounter the same error.The code above seems to be missing "/"

                        Example Code
                        @<env var=“QML_IMPORT_PATH” value=”/usr/lib/qt4/imports”/>@ //For some reason "/" won't appear beside code but i do put it

                        @file:///accounts/1000/appdata/com.Tester.testapp.testDev_xx_testapp35f67ca8/app/native/qml/MyApp/main.qml:7:18: Type Control unavailable
                        file:///accounts/1000/appdata/com.Tester.testapp.testDev_xx_testapp35f67ca8/app/native/qml/MyApp/Control.qml:3:1: module "QtMultimediaKit" is not installed @

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          AlterX
                          wrote on last edited by
                          #25

                          A new snapshot (Qt 5.2.1) is available for BB "here":http://qt-project.org/wiki/Qt5-on-BlackBerry10

                          Qt Ambassador
                          Real-time cooperative teams: http://www.softairrealfight.net
                          Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                          https://codereview.qt-project.org/...

                          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