[Solved] Targeting All devices as well as cross platform
When Targeting All devices as well as cross platform desktop, is it best to skip using a GUI editor like Designer or QML, or is it best to use QML, or Can I also target Mobile devices using Designer?
Not really one question; but I don't know another way to word it.
I'm writing a new app and want to run on the widest selection of devices, but also want it to run as a Desktop app; I don't know enough about QML to know if I'd be giving up making a nicer desktop app, as a sacrifice for making a mobile application as well; since the components seem some what limited compared to what is in Designer, it makes me wonder if QML even makes good desktop apps.
Can you target Mobile apps without using either, can I use just the API and no GUI editor like Designer or QML?
Fundamental question every programmer has to ask before choosing which road to take on a new project, I now see three choices: API, Designer or QML; and I'd like to create this app to run on mobile devices, but I'm not sure if its worth sacrificing the Desktop app to do this.
I have search for an answer, read everything about all, played with all; and I know I can do the project using any or all of them; but really what I want to know, is there an advantage using one method over another, and since I can do the GUI in code, and really don't require a GUI editor, although its nicer, does it change the underlying code?
If not, then it seems like the GUI editor file can be imported and all its controls wired up (Signals and slots), it can be done in Designer, but can you in QML? If so, it would seem I could do both, and use a precompiler statement to switch them; yet I don't see an example of anyone doing that; so my question is, can I do this and how.
[quote author="Flesh" date="1320891516"]When Targeting All devices as well as cross platform desktop, is it best to skip using a GUI editor like Designer or QML, or is it best to use QML, or Can I also target Mobile devices using Designer?[/quote]
The point is: how many devices and which resolution do they have?
For the desktop, I (personally) prefer widget style UIs.
For mobile devices, qml might be the choice.
But perhaps you need different qml files for different devices (different resolution, aspect ratios etc.)
My advice: forget about porting your UI directly between the different types platforms. Phones are not desktops in how they are used, and there are other platforms in between as well. What's more, appreciate that the UI components a user expects on Android are not the same as those on Symbian which are again different from what you would expect on Meego.
Thus, accept that you will need to (largely) re-do your UI for each of the platforms. So, make a clean separation between your program logic and state, and your UI layer. Make your logic & state layer such that you can export it to QML for your mobile phones. That will also make it easy to re-use it as the basis for your widget based UI for the desktop (which should work out fine if you stick to using the widgets for that).
Yes, I agree, thanks for the advise.
I do not own a mobile device, its easy to forget that they are different and as such, are not mini versions of a desktop computer, nor used the same.
I agree with Gerolf and Andre.
If the op's question is now answered, it is preferable that he/she adds a [Solved] to the title. :-)
[Solved] New to this forum; will keep that in mind, thanks.
Thanks for adding! It would be of help for people searching through threads! ;-)
And welcome to Qt Developer Network! :-)