[SOLVED] Several Qt problem on BB Qt
-
wrote on 2 Jan 2013, 13:11 last edited by
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.
-
wrote on 2 Jan 2013, 13:44 last edited by
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)! -
wrote on 2 Jan 2013, 13:48 last edited by
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? -
wrote on 2 Jan 2013, 13:51 last edited by
[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).
-
wrote on 2 Jan 2013, 15:28 last edited by
So are you now using qrc or assets now? Is there an error message from the program?
-
wrote on 2 Jan 2013, 16:20 last edited by
[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)
-
wrote on 2 Jan 2013, 16:22 last edited by
What about the qml files...how are these packaged?
-
wrote on 2 Jan 2013, 16:23 last edited by
They are packaged in the normal way...just added in the project file
-
wrote on 2 Jan 2013, 19:01 last edited by
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.
-
wrote on 3 Jan 2013, 21:07 last edited by
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)
-
wrote on 4 Jan 2013, 21:51 last edited by
QtMultimediaKit should be there. However, not everything is implemented yet (like the camera).
I am getting "module "QtMultimediaKit" is not installed" error.
-
wrote on 10 Jan 2013, 13:15 last edited by
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? -
wrote on 10 Jan 2013, 13:47 last edited by
[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. -
wrote on 10 Jan 2013, 15:51 last edited by
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"/>
-
wrote on 12 Jan 2013, 18:41 last edited by
[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"/> -
wrote on 13 Jan 2013, 19:20 last edited by
/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.
-
wrote on 1 May 2014, 13:29 last edited by
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 @ -
wrote on 31 May 2014, 12:34 last edited by
A new snapshot (Qt 5.2.1) is available for BB "here":http://qt-project.org/wiki/Qt5-on-BlackBerry10