Hi Rondog, thanks for your help, your source code is very interesting, I will try to implement it.
My project uses MainWidget, the original version of the project (Symbian) used MainWindow.
I tell you that a week ago I heard of Qt for BlackBerry, I want to port my app. The most important functions of the app are:
Send and receive SMS automatically (Not ported)
Making and accepting requests http automatically (ported)
Sqlite data base management (ported)
The quality of the graphical interface is secondary.
Apparently Qt Creator has limitations, I will try to implement the most important functions (Send and receive SMS automatically). If I solve the problem, I will continue with the GUI, but if I have problems I'll have to start using
BlackBerry Native SDK. Thank you very much.
Coldpeace, I did what you said (cleaned the projects, set the right kit). It works (only with new proyects). My proyect (symbian) don't works. Now I will copy-paste the source code, look for the error. Thank you very much to all.
It should be possible to utilize the nokia plugin. If you are using Qt5, there is an OpenStreet maps one afaik. The position plugin for Blackberry is not yet upstream in Qt5 but will probably be available soon.
are you using QtGui or Cascades and which Qt version?
I think there are several ways to do that. Did you already look into the qnx platform plugin? The touch events are sent with QWindowSystemInterface::handleTouchEvent(w, m_touchDevice, pointList);
So you could hack it into the platformplugin somehow.
Another possibility would be to inject a bps screen touch event into the qt event loop. You might want to have a look at:
QQnxBpsEventFilter::nativeEventFilter(const QByteArray &eventType, void *message, long *result)
I went back and re-read the notes on building Qt for Blackberry.
It does mention that it is targeting Blackberry 10 and not so much the playbook. It also recommends using 4.8.x
From what I have found version 4.8.3 is the latest Qt version that you can use if your target is a playbook (version 2.1). Every version higher has some really strange issues (maybe unsolvable at the application level).
Just to add more information on this subject, I notice other widgets, like labels, are updated on the showevent(). Not sure if this behavior could be considered a bug, I always tought that showevent() was suposed to be used in this kind of situation of updating widgets. Anyway it's "fixed" with singleshot()
Is there any player in example / demo in que Qt that you can try porting out of the box to bb10 to see if it plays sound ? I was having a OpenGL problem in BB10, I solve it by using the cube example and comparing with my code.
I will not reject possibility that simulator has some problems getting correct DPI while showing text when its font size is given in points. How size of your rectangle is calculated? Is it calculated in pixels or points? If in points where from have you got points?
I have "solved" problem myself. Instead of using native solution I have based my code on https://github.com/blackberry/Cascades-Samples/tree/master/paymentservice and it works very nice. Actually I like it better because I have to write less code and "bb::platform" code does not look cascades specific (I hope it will remain so). Just as help to others here what you should take into account by adopting this cascades solution for Qt app:
Don't forget to add some extra "using namespace bb::platform" or use "bb::platform::" before specific functions.
Add following line to pro file: LIBS += -lbbplatform
If you are writing QtQuick app here is how you should set Window Group id (it works for me so I guess that's correct way):
I do use Windows. So far I have absolutely no success with the debugger on the simulator.
Is that applicable to Qt Creator/BB10 on Windows?
Anyway... Does anyone have an idea what are the future plans for Qt Quick and Qt Creator on BB10? Will they be officially supported and improved or they are just a byproduct of the Cascades UI development???
Just a few things. QClipboard is working (with certain limitations) and only in pure Qt applications. For cascades apps there is a separate library. Also settings should work just fine. The QtMobility stuff is currently being implemented. I know that a lot of the Qt mobility parts are still missing, but it is getting there. And help is always appreciated: http://gitorious.org/+kdab-developers/qt-mobility/qnx-qt-mobility
@helex: Are you talking about a QtQuick ListView or a Cascades ListView