View Full Version : Performance question about importing C++ classes to QML

23rd October 2011, 20:09

I was wondering what happens under the hood when I register a C++ class and import it to QML?
I'm importing a C++ class with functions that are used to scan for bluetooth devices and services, and I was wondering if i should create a new class that acts as a "gateway" between the C++ code and the QML code and then import that instead of the acual class where all the code is.
So that all the new class does is send signals or call functions from the other class.

Also so I don't have to create a whole new thread, I would appreciate some performance tips when writing mobile applications with Qt and Qt Quick. I noticed there is a very slight slowdown during animations when running the program on my Nokia N900, nothing too major though.

Thanks in advance!