qt - Suitable disposition between QML and C++ -
i constructing custom ui qt 5 mvc using qml/c++ , wondering how structure code in regard put in c++ , put in qml. purely visual parts (view) put in qml , data (model) in c++, parts aren't clear? should lean towards putting things in c++ , try reduce qml code somewhat, or better lean in other direction, i.e increasing qml code , reduce c++ parts? have not worked enough qt/qml able know best way this.
both parts feasible imho, take lot of effort if need change afterwards , therefore want @ least right before begin create lot of code.
what experiences in when designing qtquick interfaces? design components in c++ thin qml interface on top or other way around? pros/cons each solution? preferred way structure code when designing ui in qtquick?
here's 2 cents worth. applies qt version 5.1 (ish)
qml designed implement ui. i've designed parts visual implementation in qml. ui elements can't done in javascript "helpers" or views in c++.
i'm using model/view data display. models implemented in c++ (i used sqlite databases last application).
qml still work in progress if stray far standard telephone interfaces there isn't implemented. standards ui behavior expect desktops aren't present @ all.
good luck!
Comments
Post a Comment