Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know there is already a thread asking for example 3d games written using Qt. What I'd like to have a discussion about is whether or not Qt is a good framework for game development.

In my experience Qt is a joy to work with and thanks to QML and QML/3d it's looking like it could be a viable framework for game development. The thought of using signals and slots for gamedev is exciting.

I'd like to hear some opinions on Qt in general as a game development platform. What are it's limitations? What are it's advantages?

Edit: I found an official Qt game development forum.

share|improve this question

closed as off-topic by Josh Petrie Oct 22 '13 at 13:22

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions that are about "which tech to use" are outside the scope of the site. For more information, see this meta post" – Josh Petrie
If this question can be reworded to fit the rules in the help center, please edit the question.

Hello, and welcome to the Game Development StackExchange. Generally, we discourage discussion style questions, as they are not the best fit for the Q&A format. We ask that you ask Practical, answerable questions based on problems that you face – Noctrine Aug 10 '11 at 20:58
@Noctrine Would a rewording be acceptable? I really just want to know the pros and cons of Qt for game development, if anyone has tried it. – Gagege Aug 10 '11 at 21:06
There's an active meta topic on the subject of pro/con questions. In its current form, I think this question should be closed a "discussion" isn't really appropriate here. – Josh Petrie Aug 10 '11 at 21:10
I made a very comprehensive answer to a similar question on s.o. here:… – Lennart Rolland Nov 21 '15 at 1:39
up vote 1 down vote accepted

If used properly, Qt can be great for games. It has good OpenGL support if you want hardware acceleration, and if you're dealing with 2D elements or custom widgets, the QPainter class and its friends have decent performance (just stay away from QPainter::SetOpacity, that'll kill your performance).

The other great thing about Qt for games is Qt Style Sheets. You can create a custom look-and-feel for your GUI using a CSS-like syntax, so your game's GUI won't look like a boring gray platform-specific interface.

share|improve this answer
Well usually a game's buttons are just sprites/textures, but I suppose in an early prototype you could be using a toolkit's widgets – bobobobo Aug 11 '11 at 13:38

I've been working with Qt and it is quite nice, defenitely OK for a not too complicated game, for a 2D game it would be perfect I'd say.

The pros I found:

  • integrated translation
  • simplicity when creating menus

The cons I've stumbled into:

  • no draw calls from other threads than the main thread.
  • complicated to debug signals
share|improve this answer
"no draw calls from other threads than the main thread" that's a limitation of the way OpenGL contexts work, not Qt. Not sure about Direct3D though. – CoffeeandCode Oct 20 '15 at 5:47

Although this thread is quite old, maybe this could still be interesting for some of you: V-Play is a cross platform game engine based on Qt.

It offers a wide range of components specialised for game development, monetization and social services.API reference.

You can also have a look at some games that are already live in the App Stores in the showcase section of their homepage.

(Disclaimer: I'm one of the guys behind V-Play)

share|improve this answer
You should disclose when you are a developer of (or otherwise related to) a technology you are advocating in an answer. – Josh Petrie Oct 22 '13 at 13:21
Forgot to add it, thanks for the hint. – Alex Huber Oct 25 '13 at 10:38

Not the answer you're looking for? Browse other questions tagged or ask your own question.