Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. software/app for PC and mobile device
Forum Updated to NodeBB v4.3 + New Features

software/app for PC and mobile device

Scheduled Pinned Locked Moved Unsolved Brainstorm
6 Posts 3 Posters 1.1k 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.
  • B Offline
    B Offline
    bob_new
    wrote on 8 Jun 2019, 17:30 last edited by
    #1

    Hello,

    We plan to use Qt and QML/Quick to make a new software for a computer (Windows/MacOS).
    We would like also to make a version of this software for a tablet (Android/Ios).

    The UI of the PC software will fit in a small size screen (10"), and we will use touch/mouse compatible gadgets. So there should be no big problems to adapt the UI for tablets, with the same (or almost the same) source code.

    But, we do not know about the other parts (system files, ...).
    (our experience about mobile devices development is very limited)

    Could you please tell us how the developers, who want to code for both platforms, usually do for that ?

    Could it be possible to use the same source code for both computer and mobile devices, with an acceptable number of computer/mobile OS tests in the code ?

    Or is it wiser to just keep the UI code for both platforms, and then make two separate source code projects (one for computers and one for mobile devices) ?

    Any link regarding this may be welcome as well.

    Thank you in advance for your help.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Jun 2019, 19:51 last edited by
      #2

      Hi and welcome to devnet,

      What do you plan to do filesystem wise ?

      You essentially have to check what your application will do differently on mobile VS desktop. If exactly the same then there's no need for two different code bases. If slightly different, then again, there's usually no need to split the code base. You take the differences into account using e.g. #ifdefs. If the difference are bigger, well, you can do like Qt and have dedicated implementation that you only build when the build targets the platform the code is supposed to run on.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • B Offline
        B Offline
        bob_new
        wrote on 8 Jun 2019, 21:10 last edited by
        #3

        Thank you for your answer.

        The software will just have to open/save/save_as files.
        (no system files ; sorry for that mistake)

        It will use also multi-threads with computers (not sure this is possible with mobile devices).

        Would it be possible to know some examples of software/app which have one source code project (with an acceptable quantity of "#ifdefs" commands) and an executable file available for both computer and mobile device ?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 8 Jun 2019, 21:52 last edited by
          #4

          For managing files you have classes like QStandardPaths that will return the folders which you can access. Currently access to filesystem on mobile OSs have improved but you may have to write some native code to access them.

          You can check Qt's own code and examples. You can also find the dedicated QtXXXExtras where XXX is the name of the platform. For example: QtMacExtras, QtAndroidExtras, etc.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • B Offline
            B Offline
            bob_new
            wrote on 11 Jun 2019, 13:44 last edited by bob_new 6 Nov 2019, 13:45
            #5

            Thank you for these informations.
            It is important to know that Qt is not exclusively a nice tool for GUI, and it makes live easier also for other things like managing files.
            We start studying it more seriously.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Paul9
              Banned
              wrote on 19 Jul 2019, 06:34 last edited by
              #6
              This post is deleted!
              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