[Qt-qml] on device performance
Juha Turunen
turunen at iki.fi
Tue Dec 14 12:58:56 CET 2010
On Tue, Dec 14, 2010 at 1:51 PM, Cornelius Hald <hald at icandy.de> wrote:
> As far as I know Symbian automatically uses OpenGL or OpenVG if
> available. You have to #ifdef this part of the code :( You might also
> want to have a look at this blog:
> http://thpmaemo.blogspot.com/2010/10/qt-write-once-ifdef-everywhere.html
I don't think it's automatic. You need to tell the app which graphics
backend to use (OpenVG for accelerated Symbian^3 devices of course).
What is automatic is that if you define the graphics system, you don't
need to manually use a specific viewport widget (QGlWidget) and it
will automatically revert to raster if OpenVG isn't available.
All you need to do is call QApplication::setGraphicsSystem("openvg")
_before_ you construct your QApplication object.
Juha
More information about the Qt-qml
mailing list