Skip to content

Game Development

What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
871 Topics 4.1k Posts
  • Example of Snake game from NoobTuts tutorial rewritten in Qt C++ OpenGL

    2
    1 Votes
    2 Posts
    1k Views
    No one has replied
  • QML-Box2D eating CPU under Windows

    Unsolved
    1
    0 Votes
    1 Posts
    318 Views
    No one has replied
  • [Tutorial] How to Set Up Panda3D in Qt Creator IDE on Windows 10

    1
    0 Votes
    1 Posts
    480 Views
    No one has replied
  • color on q3dsurface only shows when zooming in

    Solved
    2
    0 Votes
    2 Posts
    614 Views
    S
    @stevereine I solved my own problem, was drawing the graph in a Window, but not using a container to do it. It kind of works, but not very good. Always best to thoroughly understand the instructions before writing code. All is now working very well!
  • Create and animate a tablecloth

    Unsolved
    1
    0 Votes
    1 Posts
    372 Views
    No one has replied
  • Flickering QGraphicsPixmapItem and QPropertAnimation objects

    Unsolved
    2
    0 Votes
    2 Posts
    505 Views
    BondrusiekB
    I found similar topic: https://forum.qt.io/topic/38432/solved-what-is-the-best-way-to-call-a-rendering-function-and-game-logic-for-a-game
  • New to Qt Game Framework

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    U
    @KroMignon Thanks for that, do you combine QML and C++ or all is QML based? forgive my ignorance... Thank
  • 3D game with gui as a side part

    Locked Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    mrjjM
    @JulienD hi No, it was not to say QML could not also be used. Im have not tried dynamic creation with it so I can not say if its lacking or not. Its more that Godot offers tons of game related features out of the box and the learning curve is amazingly low. So it was mostly just to add it as a possible candidate. :)
  • Can rendering be done from a thread to MainWindow process?

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    J
    @SGaist said in Can rendering be done from a thread to MainWindow process?: Are you aware that Ogre3D already provide Qt integration and has even done a major update to it ? Yes, unfortunately, the version 1.x of Ogre is very different than the 2.x release. @JKSH said in Can rendering be done from a thread to MainWindow process?: Rather than QWidget, perhaps QOpenGLWidget or QOpenGLWindow might suit you better. I'm looking at QOpenGLWindow and not exactly sure how to integrate the rendering engine I'm using. I've done the following: - subclassed QOpenGLWindow. - overridden initializeGL(), resizeGL(), paintGL() which are all currently empty. - Added QSurfaceFormat and set a default format. What I don't understand from looking at the examples is that, I'm not making native OpenGL calls and that's how all the examples I've seen are done. Are there any examples any where's that show how to do updates from a thread? Here is my rendering window constructor that I've been trying to convert by subclassing with QOpenGLWindow. Am I on the right track by creating my rendering window in this way? This is sort of how I did it when subclassing from QWidget in the past. QOgreWindow::QOgreWindow(QWidget* parent) : QOpenGLWindow(parent), renderWindow(nullptr), camera(nullptr), cameraController(nullptr), timeSinceLastFrame(0.0f) { int width = 800; int height = 600; Ogre::String windowHandle = Ogre::StringConverter::toString((uintptr_t)(this->winId())); params["parentWindowHandle"] = windowHandle; renderWindow = Ogre::Root::getSingleton().createRenderWindow( "My Window", width, height, false, &parameters); }
  • adding many QPixmap images to a label

    Unsolved
    3
    0 Votes
    3 Posts
    702 Views
    JonBJ
    @mayyy I don't think anyone will be able to say much without more detail of what you are trying to do/what you tried/what does not work.
  • Qt with Prolog

    Unsolved
    3
    0 Votes
    3 Posts
    745 Views
    JonBJ
    @doom97 In that post you referenced https://forum.qt.io/topic/77487/add-prolog-in-a-qt-application. And I asked you: Anyway, I don't think that person is around any longer, he claimed to have solved it, can't you follow his route from what he showed? So what is your exact question?
  • Visual Scripting for Qt apps

    Locked Unsolved
    2
    0 Votes
    2 Posts
    483 Views
    aha_1980A
    @dzimiwine no cross posts, please. Dup of https://forum.qt.io/topic/118449/visual-scripting-for-qt-apps Closing this one.
  • Drawing text in QtOpenGLWidget

    Unsolved
    1
    0 Votes
    1 Posts
    419 Views
    No one has replied
  • adding a countdown timer in a QLabel

    Solved
    7
    0 Votes
    7 Posts
    3k Views
    SGaistS
    Since you are a beginner, you should take the time to follow one or more of Qt's widgets tutorials in the documentation before going further. You'll get the ropes and avoid pitfalls doing so.
  • Multithreading in Qt with C++

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    S
    Hello JKSH, It's working now, thanks to your suggestions. I broke the QThread and QObject classes out into .h and .cpp files, pretty much worked after that. Also, I hit a dead end trying to periodically start the thread to poll for TCP/IP data. That's an easy thing to do in Python, not so elegant in QT C++. I went with your recommendation on using QTimer. All seems well with the app now. Thanks again, I am submitting this as solved.
  • How is QKeyEvent supposed to be used for games?

    Unsolved
    10
    1 Votes
    10 Posts
    3k Views
    N
    Otherwise, I tested quitebrowser under macOS with the W3C keyboard event viewer. Pressing and releasing 'a' seemed to work correctly; reported events for the 'legacy' portion of the table were: When pressing the QWERY a key (right of caps lock), QtWebEngine synthesizes DOM code from QKeyEvent::key(). Which means that switching keyboard layouts causes the key to produce incorrect or missing code. I reported this at https://bugreports.qt.io/browse/QTBUG-85660, and my library has a workaround for this issue. Incidentally I found that Qt Creator's QtWebEngine sample browser is easier to use than qutebrowser, and sends keys directly to the site instead of capturing them unless you're in the right mode.
  • how to move a draw (Qpainter) to Qlabel ?

    Solved
    15
    1 Votes
    15 Posts
    3k Views
    M
    @mrjj This is perfect ! thank u so much for ur help.
  • Is this solved? I cannot make triangle picking work.

    Unsolved
    6
    0 Votes
    6 Posts
    900 Views
    JonBJ
    @huajian I did see it used in the link you mentioned. I'm afraid you cannot rely on everything posted in this forum being literally correct! :) It may have worked then, or it may never have worked. I don't know your area, but I would read up about nodes, components & geometries until I knew how they fitted together --- which you will need to understand anyway --- and then hopefully I'd know the answer!
  • How can I locate an image in a specific cell of a grid?

    Solved
    12
    0 Votes
    12 Posts
    1k Views
    M
    @jsulm thank u , the problem is solved
  • TrianglePicking does not work?

    Unsolved
    1
    0 Votes
    1 Posts
    343 Views
    No one has replied