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. Basic question : how to develop games in Qt.
Forum Updated to NodeBB v4.3 + New Features

Basic question : how to develop games in Qt.

Scheduled Pinned Locked Moved Game Development
6 Posts 4 Posters 4.7k 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.
  • M Offline
    M Offline
    mady
    wrote on last edited by
    #1

    Hi,
    I am new to -QT- Qt, wanted to develop some games. Could you please give me some pointer/link from where I can start.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @int main()
      {

      }@

      is always a good start ;)

      More seriously, there is no definite answer. You can go into Qt Quick (QML), and develop there, you can use Qt Graphics View Framework, or implement your own graphics using QGlWidget (or QPainter).

      All those are built into Qt, so you can safely go to "docs":http://developer.qt.nokia.com/doc/qt-4.7/
      There are also "blogs":http://labs.qt.nokia.com/2010/08/12/a-guide-to-writing-games-with-qml/ about it, and other textual and video tutorials.

      Maybe the question is basic, but there's just a lot of possibilities.

      (Z(:^

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        Your question is not basic, it is too vague to answer.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mady
          wrote on last edited by
          #4

          Thanks Sierdzio,

          I looked into QML link that given in your update but it seems like we need to have qml viewer then only we can run qml code, is this true? If not then what are other possible ways available to run apps developed in qml?

          Basically I wanted to start developing games for mobiles and I am looking for best possible options. I found QT could be one of probable way to develop mob games.
          It would be great if you can guide me in the same direction.

          thanks once again.

          1 Reply Last reply
          0
          • I Offline
            I Offline
            Iktwo
            wrote on last edited by
            #5

            [quote author="mady" date="1319047112"]Thanks Sierdzio,

            I looked into QML link that given in your update but it seems like we need to have qml viewer then only we can run qml code, is this true? If not then what are other possible ways available to run apps developed in qml?

            Basically I wanted to start developing games for mobiles and I am looking for best possible options. I found QT could be one of probable way to develop mob games.
            It would be great if you can guide me in the same direction.

            thanks once again.[/quote]

            Hi, you can use C++ code with QML, remember it's Qt and not QT (QuickTime), what kind of game are you planning to do? QML it's great with images and multimedia stuff. Some people are rude when answering questions, maybe they forgot when they were learning, I'm learning too and I would like to know more about your game ideas. :)

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Ok, well, I am personally more into C++ side, and have made just a few simple projects in QML, so I might not be the best guy to ask. But for mobile, QML is definitely a great choice - very flexible, very (and here I mean really, REALLY very) easy to learn, and yet quite powerful. About the viewer - again, it's just one of a few options, and there will be major changes here in Qt5. For the time being, let's focus on Qt4. You can use QML viewer to run plain QML/Js projects. So, it's not a necessity, more a convenience helper. You can easily create your own app without the viewer, simply use QtDeclarative module - the widget that displays QML is called QDeclarativeView, IIRC. It also gives you additional benefit of C++ - you can easily code a "mixed" app, where some parts are done by QML, even by some graphic designers with no programming skills, while coders make the C++/ JavaScript backend.

              (Z(:^

              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