Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Solved] Targeting All devices as well as cross platform

[Solved] Targeting All devices as well as cross platform

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 4 Posters 3.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Flesh
    wrote on last edited by
    #1

    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.

    Thanks

    Jeffrey Scott Flesher PhD
    http//LightWizzard.com/

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      [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.)

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        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).

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Flesh
          wrote on last edited by
          #4

          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.

          Jeffrey Scott Flesher PhD
          http//LightWizzard.com/

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sfilippidis
            wrote on last edited by
            #5

            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. :-)

            https://www.filippidis.name/

            1 Reply Last reply
            0
            • F Offline
              F Offline
              Flesh
              wrote on last edited by
              #6

              [Solved] New to this forum; will keep that in mind, thanks.

              Jeffrey Scott Flesher PhD
              http//LightWizzard.com/

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sfilippidis
                wrote on last edited by
                #7

                Thanks for adding! It would be of help for people searching through threads! ;-)

                And welcome to Qt Developer Network! :-)

                https://www.filippidis.name/

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved