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 BlackBerry and QNX
  4. [SOLVED] Several Qt problem on BB Qt
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Several Qt problem on BB Qt

Scheduled Pinned Locked Moved Qt on BlackBerry and QNX
25 Posts 7 Posters 13.8k 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.
  • L Offline
    L Offline
    leon.anavi
    wrote on last edited by
    #2

    [quote author="AlterX" date="1356805238"]
    3. There is a big problem with rotation, autorotation and lock Qt instruction that cause the app to crash immediately
    [/quote]

    Could you please specify which BlackBerry OS do you target how to you test your app? PlayBook OS or BlackBerry 10? Real device or simulator?

    http://anavi.org/

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

      I am using a dev alpha B with tbe last os update and last ndk...currently i just deploy the app and launch it on the device (see my last thrad on ssh rejection).

      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
      • S Offline
        S Offline
        Slocan
        wrote on last edited by
        #4
        1. Sounds like it can't find the QtMultimediaKit libraries. I haven't tried that myself, I'm not even sure if these are supposed to be available for BB10
        2. Any errors? That works for me.
        3. See http://qt-project.org/forums/viewthread/22712/ . It will apparently be fixed in the next ndk version. Previous version should also work, or disable rotation for now.
          If you're using the qt creator qml viewer template, you can use:
          viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
          to lock the app in landscape.
        1 Reply Last reply
        0
        • B Offline
          B Offline
          borut123
          wrote on last edited by
          #5

          Any news about QtMultimediaKit libraries for BB10?

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

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

            JavaScript functions should work without any problems. Is there any error message?

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

              I don't know...I've given it up for now...I'm using cascades for this simple project (just qml, javascript and sounds using multimediakit).
              It was wonder if I could use qtcreator with just few port hours...but it wasn't!
              Anyway I will give a try to it...
              Does Someone know if NumberAnimation and PropertyAnimation are supported?

              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
                #8

                bq. Does Someone know if NumberAnimation and PropertyAnimation are supported?

                Yes, of course.

                Setting up the Qt Creator with BB10 canbe somewhat anoying, still. But it will improve in the next version.

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

                  I've just tried again to load the main qml onto device without success!
                  the form uses qtmultimediakit and a Rectangle in which I set a background image (get from resource).
                  It shows me just a white form (locking orientation on the device; if not it shows half white image and then it crash)!

                  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
                    #10

                    I suspect you either did not package the asset (qml file) correctly or, you specify the wrong path.
                    Are you using qrc or are you deploying your files?

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

                      [quote author="Bomb3rman" date="1357134484"]I suspect you either did not package the asset (qml file) correctly or, you specify the wrong path.
                      Are you using qrc or are you deploying your files?[/quote]

                      I have used both because of I've two versions: one symbian that deploys all files and an other one for n950 that uses resources. I think the symbian version worked for me (showing background but always in portrait mode).

                      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
                        #12

                        So are you now using qrc or assets now? Is there an error message from the program?

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

                          [quote author="Bomb3rman" date="1357140516"]So are you now using qrc or assets now? Is there an error message from the program?[/quote]

                          currently I'm using qrc for images and sounds and I haven't any error from Qtcreator (but if see another my post, I'm not able to launch app directly from within qtcreator, so I suppose I cannot view normal output)

                          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
                            #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

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved