Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android development with QML and C++ for back-end
Forum Updated to NodeBB v4.3 + New Features

Android development with QML and C++ for back-end

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
c++qmlandroid
7 Posts 3 Posters 2.2k 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.
  • E Offline
    E Offline
    Exotic_Devel
    wrote on 22 Jul 2016, 13:08 last edited by
    #1

    Is it possible to use QML for UI and C++ for business rules in android projects?
    It is necessary to manipulate java code?

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      Qojote
      wrote on 22 Jul 2016, 13:19 last edited by
      #2

      Hej.
      Its perfectly possbile to use QML for GUI and C++ classes for logic.

      Here is a really short video that seems to be a nice start:
      link text

      E 1 Reply Last reply 22 Jul 2016, 14:00
      1
      • Q Qojote
        22 Jul 2016, 13:19

        Hej.
        Its perfectly possbile to use QML for GUI and C++ classes for logic.

        Here is a really short video that seems to be a nice start:
        link text

        E Offline
        E Offline
        Exotic_Devel
        wrote on 22 Jul 2016, 14:00 last edited by Exotic_Devel
        #3

        @Qojote said:

        Hej.
        Its perfectly possbile to use QML for GUI and C++ classes for logic.

        Here is a really short video that seems to be a nice start:
        link text

        But in the video the author is building for Desktop device. This applies to android applications? Once between android and Qt Java there.

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          Qojote
          wrote on 22 Jul 2016, 18:16 last edited by
          #4

          Creating Qt apps for android devices is quite easy and (almost) similar to desktop development. Thats the point in using Qt, to run the same application on several platforms. But maybe i misunderstood what your usecase? What do you mean with "Qt Java"? You can use native java classes to add special functionality to your app, but normally you are just fine with Qt/C++ Code.

          E 1 Reply Last reply 22 Jul 2016, 19:33
          0
          • Q Qojote
            22 Jul 2016, 18:16

            Creating Qt apps for android devices is quite easy and (almost) similar to desktop development. Thats the point in using Qt, to run the same application on several platforms. But maybe i misunderstood what your usecase? What do you mean with "Qt Java"? You can use native java classes to add special functionality to your app, but normally you are just fine with Qt/C++ Code.

            E Offline
            E Offline
            Exotic_Devel
            wrote on 22 Jul 2016, 19:33 last edited by
            #5

            @Qojote said:

            What do you mean with "Qt Java"?

            I meant that C ++ / Qt is not the native android technology, among them there is java. So I thought it would be different.

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              Qojote
              wrote on 22 Jul 2016, 20:07 last edited by Qojote
              #6

              As long as you just use Qt classes the code can be crosscompiled for your target system, as for example android. Qt Creator and the toolchains do all the work to translate the C++ code for the target. For android a .apk is generated. You do not need to worry about the underlying structure (which maybe creates java code orbinary code or bitcode or whatever). And if you need some really special functionality within your app, you can integrate native java code.

              1 Reply Last reply
              1
              • M Offline
                M Offline
                mvuori
                wrote on 22 Jul 2016, 22:43 last edited by
                #7

                No, one does not need to use Qt classes. Just about any C++ or C can do for the business logic, but Qt-derived classes would be the glue between QML and those.

                1 Reply Last reply
                0

                1/7

                22 Jul 2016, 13:08

                • Login

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