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. Porting desktop application to Android and IOS?
Forum Updated to NodeBB v4.3 + New Features

Porting desktop application to Android and IOS?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 3.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.
  • B Offline
    B Offline
    bapi23
    wrote on 15 May 2014, 13:45 last edited by
    #1

    I want to port my desktop application to IOS and Android in Qt. I have separated app logic and ui by adaptors/proxies/observers created and injected in factories and there shouldn't be problem related to connected it with QML. My questions are :

    1. How I can configure project to deploy both android, ios and desktop versions of my app?
    2. Can You give me some examples from your experiences with multiplatform deployement?
    3. Can I do it in standard version of qt/qtcreator without any charges?
    4. How I can add qt libraries to my android app ( As I assume free version of Qt dosn't allowed for static compile)?
    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vincent007
      wrote on 15 May 2014, 14:11 last edited by
      #2

      You can refer to "Qt weather app":http://qt.gitorious.org/qt-labs/weather-app/source/master
      Static link must be used on iOS.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        metaDom
        wrote on 16 May 2014, 16:32 last edited by
        #3

        I do develop single source cross-platform apps for Win, Linux, MAC, Android and iOS. After you get the basics per platform, it's simple to port them :)

        Your pro file requires to have containers for platform specific code like JNI on android or the icons on iOS.

        E.g:

        @android {
        QT += androidextras@

        or

        @ios {
        BUNDLE_DATA.files = $$PWD/iosImages/Icon-60.png @

        I'm unsure about Qt 5.3, but with 5.2 I had problems using SSL connections on iOS. Such problems you need to add exceptions for the platforms with QtGlobal.

        @#ifdef Q_OS_ANDROID

        #endif@

        Would only compile the code between if the target is an Android device.

        You do not need any special Qt version, the basic free one is fine.

        Libs are added as always, using your .pro file and

        @LIBS +=@

        1 Reply Last reply
        0

        1/3

        15 May 2014, 13:45

        • Login

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