07-04-2012 11:11 AM
Can you show me your QML file?
07-04-2012 11:44 AM
Here's a simple qml I've used in my test app:
import QtQuick 1.1
Rectangle {
anchors.fill: parent
color: "red"
Text {
anchors.centerIn: parent
color: "blue"
text: "!!!"
}
}
07-05-2012 02:25 PM
Hi Oleg,
not sure if that helps, but I've sucessfully used QtQuick on OpenGL on Playbook and DevAlpha. One public project where I do that is "Plonk". Here is the main.c: https://gitorious.org/mong/mong/blobs/blackberry/s
I've used it with the preinstalled Qt 4.8.? on the DevAlpha and with custom build Qt 4.8.2. Both worked fine.
Cheers,
Conny
07-05-2012 02:42 PM
07-05-2012 02:45 PM
Good luck
Let me know how it goes.
Ah and if Plonk works but is laggy, that's a know (and now fixed) bug in Qt. Something to do with event handling but not related to the graphics system.
07-06-2012 10:37 AM
Conny, thanks again. I've managed to run my app with OpenGL rendering. Now I got stuck with a new problem - orientation handling works very buggy, while without QGLWidget everything is fine.
Here's link to my test app: https://dl.dropbox.com/u/2535464/Bb10GlTest.tar.7z
P.S. Reason for my first trouble was showing QDeclarativeView after the start of event loop (QApplication::exec()). I don't know why it leads to problems on BB10 while works fine on Linux.
07-07-2012 03:31 AM
Hmm... most of my tests had fixed orientation so I don't have too much experience with that. What exactly is the problem? And are you running on DevAlpha or Playbook? With default Qt or your own build?
07-07-2012 04:38 AM
07-07-2012 07:57 AM
Thanks for the screenshots - that looks really strange. I will test it as soon as I manage to turn on my DevAlpha device. Currently having some issues with that ![]()
07-09-2012 10:57 AM
I am not so familiar with OpenGL using QtQuick, but when your device is rotating, are you calling any code to accomodate the change?
e.g.
bbutil_init_egl(m_screen_cxt, GL_ES_1, newWidth, newHeight)
Martin