QML on android - will C++ work for business logic? -


doing investigation on feasibility of using qt/qml upcoming project. client wants on windows , mac desktops, possibility of ios , android down road. know build move relatively easily. i'm not of desktop programmer, see qml designed work c++. result, should relatively easy build app runs on mac , windows, , ios accept c++, can't see lot of roadblocks there. i'm confused android. see folks talking building android app using qml, seem still using java; gather uses ndk in background.

but if write application has qml front and, , c++ guts not covered qml, can work on android? or need rewrite c++ piece in java? app not simple one, going have provide logic outside of qml, @ least, sure looks way. while might save time , $$$ using qt not have go native on desktops , ios, see problem android down road.

but if write application has qml front and, , c++ guts not covered qml, can work on android? or need rewrite c++ piece in java?

it depends. may need go through java interface android platform not provide direct , public api functionality. 1 example low-level io operations, writing serial port usb-serial devices, there more it.

in general, qt modules , third-party software based on qt use qandroidextras add-on module introduced in qt 5.2. allow easy backend integration c++ logic.

with in mind, hide java implementation details in background while still maintain c++ interface qml. therefore, should work way.

please see following documentation grasp of it:

qt android extras

here can find 1 of nice examples:

qt notifier - demonstrates calling java code android application.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -