[SailfishDevel] Is it worth it to use the Sailfish namespace functions/functions defined in sailfishapplicatoin.cpp instead of creating a QML/QtQuick application the default way?

superpelican superpelican at zoho.com
Sat May 4 18:57:11 UTC 2013


Are there any big benefits to using the functions/classes defined in sailfishapplication.cpp compared to just creating a "normal" QML application (by just creating a QDeclarativeView object etc.). Does doing it the Sailfish specific way give you a performance optimization advantage? When reading through sailfishapplication.cpp I find things like a #ifdef statement that calls a qDeclarativeView() function which is in a special  MDeclarativeCache namespace, is this for example a special, optimized function? I also see that QGLWidget is #included, does doing it the Sailfish specific way give you a openGL accelerated QML UI on Sailfish?

The Sailfish specific way complicates things, especially writing a hybrid C++/QML app. I'm still quite new to programming and Qt/QML especially and I'm already having a hard time figuring out how to let QML/C++ communicate with each other. Luckily there is lots of documentation about it, but there isn't any Sailfish specific documentation about writing a QML/C++ hybrid app.


Thanks in advance,


Superpelican :)


P.S.: Thomas Perl thanks a lot for your help and the handy webpages. ;)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sailfishos.org/pipermail/devel/attachments/20130504/3b8ad904/attachment.html>


More information about the Devel mailing list