Basic question : how to develop games in Qt.
-
@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.
-
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 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. :)
-
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.