Re: qt quick using c++ for the logic
To add to the complete answer done by Wysota.
Currently I'm "forced" to go with the QML because, according to the "force beyond me", this "allows" to divide logic (c++) and GUI (done without problem with Widget approach, but live it as it is...). The actual reason is that person that is not familiar with he Qt read, on digia or something, that QML is new way of designing new desktop applications (no comments here) ... so I'm stuck with designing for 2h GUI that could be done within 10 min widget way.
Depending on Your Qt knowledge level, transition is not so hard.
My thoughts about QML:
1. adds additional level of the abstraction, code more prune to the error, especially if You don't like JS/Java/JSOns style languages, QML descriptive language for the GUI. QtCreator crashed on me few times on editing QML file, and as was said here before, only primitive shapes are ready, lacking of the actual widget support atm.
2. adds additional dependences to the project. Along with the standard libraries qtcore/gui I had to ship qdeclarativeview, sql, qscripting etc. So it's something to consider, because these additional libraries are like 10+MB in size
3. communication between c++ and QML is fairly easy and is actually one of the strong points of that design, because You can actually really fast switch between GUI definitions, very handy if porting to the embedded device wit diffrent screen sizes - and to point here out, QML was designed for the embedded devices in mind
Some people say that rule is: animated GUI -> QML, statical GUI -> Widgets. I must disagree, because I did develop a game,using custom widgets, that run in FullHD at 60fps without any problem. The same goes for the custom widgets - no problem at all and they look nice (i.e. web 2.0 look like) - but that is entirely up to programmer/designer.
At the end I must say that QML, IMHO, is not something to be considered for developing widget rich applications (i.e. level editor - although, as was said by Wysota before, this can be done). If You want to design custom components for, practically every, widget then it's a good way to go.
In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
The advance of computerization however, has not yet wiped out nations and ethnic groups.
Bookmarks