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. Use Qt app with Apple Watch
QtWS25 Last Chance

Use Qt app with Apple Watch

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
ioswatchxcode
8 Posts 3 Posters 4.1k Views
  • 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.
  • A Offline
    A Offline
    andershaf
    wrote on 25 Apr 2016, 04:49 last edited by andershaf
    #1

    Hi,

    I have been working with Qt for a few years now, so I'm pretty comfortable making apps with Qt now. It is my goto-tool even for iOS-only apps. I would like to develop an app that also has an Apple Watch-app, but I'm having a bit trouble doing so. By creating a standard Qt Quick Application, compiling (so the XCode-project is generated), I managed to open the XCode-project and add a Apple Watch target there without trouble (only some compiler settings that I needed to fix). So this actually works and I can in principle communicate between the watch and i.e. QML easily this way.

    The problem is that when I do any changes in Qt Creator and recompile, the .xcodeproj-files are overwritten so that my changes in XCode are gone. Is there any easy way to fix this? I'm comfortable with changing the Qt Creator source code myself, but not sure if that's the best way.

    1 Reply Last reply
    1
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Apr 2016, 20:59 last edited by
      #2

      Hi and welcome to devnet,

      Depending on the changes you did, a new mkspec might be enough. You could take the iOS as a base.

      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
      0
      • M Offline
        M Offline
        michaelL
        wrote on 26 Nov 2016, 16:38 last edited by
        #3

        @andershaf I add the Watch Kit to my project but still having compiler errors. What did you change to make it work?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 26 Nov 2016, 23:50 last edited by
          #4

          Hi,

          IIRC, the dev branch at least has now a mkspec for watchOS.

          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
          0
          • M Offline
            M Offline
            michaelL
            wrote on 27 Nov 2016, 08:28 last edited by
            #5

            @SGaist where do i find this mkspec?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 27 Nov 2016, 09:02 last edited by
              #6

              Clone Qt's sources and checkout the dev branch.

              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
              0
              • M Offline
                M Offline
                michaelL
                wrote on 27 Nov 2016, 10:17 last edited by
                #7

                Does Qt5.8 supports now watchOs? https://wiki.qt.io/New_Features_in_Qt_5.8
                "New Platforms
                Apple tvOS (technology preview)
                Apple watchOS (technology preview)"

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 27 Nov 2016, 18:57 last edited by
                  #8

                  Right, I forgot there was the tech preview. So indeed you can grab Qt 5.8.

                  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
                  0

                  • Login

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