Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. If I build a game in Qt for android and iOS can i include objective C toolkits in it like game center?
Forum Updated to NodeBB v4.3 + New Features

If I build a game in Qt for android and iOS can i include objective C toolkits in it like game center?

Scheduled Pinned Locked Moved Game Development
8 Posts 3 Posters 5.3k 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.
  • P Offline
    P Offline
    Periphery
    wrote on 13 Apr 2013, 05:56 last edited by
    #1

    I want to build a game for both android and iOS but I'm afraid I wont be able to make it fully functional as if I were to just build one in objetive C. So can I use toolkits from android and or iOS in Qt? or can I make it in Qt and add them in later with a different software?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 13 Apr 2013, 21:36 last edited by
      #2

      Hi and welcome to DevNet,

      Nothing forbids you to use what is called objective-c++ (mixing c++ and objective-c) have a look in the sources of Qt for files call *.mm.

      If you have some common interface you want to use, you'd better have plain c/c++ style headers and have everything objective-c related in the implementation file (and/or private header)

      Hope it helps

      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
      • P Offline
        P Offline
        Periphery
        wrote on 13 Apr 2013, 21:47 last edited by
        #3

        thanks it does, but what about using android toolkits? Can I simply not use those in my game since they are in java?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 13 Apr 2013, 22:07 last edited by
          #4

          It all depends on how much you want to use of the underlying system. If you want to integrate some deeper parts of Android (like their equivalent for game center), you should ask on the Necessitas mailing list, you'll have more chance to reach someone experienced that can answer your questions. Also look for a c api to see if any exists.

          Hope it helps

          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
          • P Offline
            P Offline
            Periphery
            wrote on 13 Apr 2013, 22:10 last edited by
            #5

            thanks it does.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Periphery
              wrote on 13 Apr 2013, 22:21 last edited by
              #6

              also, what about using QML with objective C? can I not do that? and do I need QML to make interactive touch based games on Qt?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 14 Apr 2013, 20:59 last edited by
                #7

                You don't need QML, it's one way to do it. You can use OpenGL and/or widgets.

                AFAIK, you can't directly call objective-c from QML, you would have to create a c++ interface to connect to QML and from that interface make your call to the objective-c framework. Have a look at the QML doc, especially the part talking about QML/C++ interaction

                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
                • F Offline
                  F Offline
                  feldifux
                  wrote on 14 Apr 2013, 23:06 last edited by
                  #8

                  Hi,
                  if you like using QML for your game, you can consider V-Play, a Qt-based game engine we have been working on for the last 1.5 years. It contains platform-specific plugins like "Game Center":http://v-play.net/doc/qmlmodule-plugins1-plugins-1-0.html, Flurry or native Facebook SDK accessibe from QML, together with other gaming components for 2D games. We'll add a cross-platform solution (supported on all platforms) for leaderboards, achievements, challenges and in-app-purchases til this summer. It's free for the desktops, Symbian and MeeGo and also free to try for your iOS or Android test devices and available for download "here":http://v-play.net.

                  Cheers, Chris

                  Founder of Felgo SDK - http://felgo.com/qt

                  Felgo simplifies

                  • Mobile App Dev with Qt esp. iOS & Android
                  • Game Development with Qt

                  What others say

                  Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

                  1 Reply Last reply
                  0

                  1/8

                  13 Apr 2013, 05:56

                  • Login

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