I have managed tio get it working in the following way:
Turn off the shadow building or move your bar-descriptor.xml by hand to the shadow build folder.
I needed to add the following to my project file
[code]
package.target = $${TARGET}.bar
package.depends = $$TARGET
package.commands = blackberry-nativepackager
-devMode -debugToken /home/mm/Dokumentumok/blackberry/debug_token.bar
-package $${TARGET}.bar -arg -platform -arg blackberry
bar-descriptor.xml $$TARGET
-e $$[QT_INSTALL_LIBS]/libQtCore.so.4 lib/libQtCore.so.4
-e $$[QT_INSTALL_LIBS]/libQtGui.so.4 lib/libQtGui.so.4
-e $$[QT_INSTALL_LIBS]/libQtOpenGL.so.4 lib/libQtOpenGL.so.4
-e $$[QT_INSTALL_LIBS]/libQtNetwork.so.4 lib/libQtNetwork.so.4
-e $$[QT_INSTALL_PLUGINS]/platforms/libblackberry.so plugins/platforms/libblackberry.so
[/code]
And I needed to modify the Project's Run settings (sidebar -> Projects, and select the Run under the project):
Remove the "Create packages" step
Add a new deploy step with the Add Deploy step:
Choose custom process step.
Command: make
Arguments: [your target app name].bar
(move it above the Deploy packages step)
Hit run...
Wait...
And be happy :)
Unfortunatelly this method packs the used Qt libraries to the bar file, which causing some overhead, but I have not been able to figure ut better method.