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. Qt Quick Game Programming
Forum Updated to NodeBB v4.3 + New Features

Qt Quick Game Programming

Scheduled Pinned Locked Moved Game Development
4 Posts 2 Posters 10.0k 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.
  • K Offline
    K Offline
    kleimola
    wrote on 28 Oct 2010, 10:09 last edited by
    #1

    The guys in QUIt Coding have released an excellent crash course "guide":http://quitcoding.com/?page=work#qtquick to game development using Qt Quick and C++ bindings. The tutorial builds around a complete game "example":http://quitcoding.com/?page=work#5inarow.

    Notice, that if you try to compile the example in the newest Qt SDK for Windows (2010.05), you may run into compilation problems. Make sure that you comment out "#include <QDeclarativeItem>" from mainwidget.h and move the qmlRegisterTyle<...> from mainwidget.cpp to main.cpp (e.g. after the app initialization) and add #include <QDeclarativeComponent> and #include "tile.h" there as well. You also need to play around with copying the .qml and image files appropriately, since Qt Creator makes an own compilation directory on Windows platform. Or you can create a resource file and put the qml's and images there and adjust the loading of the files accordingly (little more work).

    >> Johannes <<

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kleimola
      wrote on 28 Oct 2010, 17:23 last edited by
      #2

      Kim Grönholm from QUIt Coding pointed out that a simpler fix is to move the #include <QDeclarativeItem> from mainwidget.h to mainwidget.cpp before the #include <QGLFormat>. Then it compiles. He also reported this as a bug in Qt itself.

      >> Johannes <<

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kkrzewniak
        wrote on 28 Oct 2010, 21:35 last edited by
        #3

        Thank You for posting such interesting articles :D You are the man.

        Me, Grimlock, not "nice dino". ME BASH BRAINS!

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kleimola
          wrote on 1 Nov 2010, 08:21 last edited by
          #4

          Kim informed me that the issue has been addressed and is fixed in Qt 4.7.1

          >> Johannes <<

          1 Reply Last reply
          0

          1/4

          28 Oct 2010, 10:09

          • Login

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