Skip to content

Game Development

What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
877 Topics 4.1k Posts
Qt 6.12 LTS is out! See what's new in the release blog
  • Welcome!

    Pinned
    43
    2 Votes
    43 Posts
    74k Views
    JKSHJ
    Hi, [quote author="cseder" date="1423513071"]But Qt has an excellent solution which makes working with OpenGL a lot simpler: The QGLWidget class is a widget for rendering OpenGL graphics. Read all about it: "QGLWidget docs":http://doc.qt.io/qt-5/qglwidget.html#details.[/quote]QGLWidget is deprecated. Use "QOpenGLWidget":http://doc.qt.io/qt-5/qopenglwidget.html instead. Also check out "VoltAir":http://blog.qt.io/blog/2014/07/21/google-labs-voltair-game-built-with-qt/ -- it is a game that Google built on top of Qt Quick.
  • 4 Votes
    50 Posts
    57k Views
    8Observer88
    It is the same as above but it uses WebGPU-Native instead of OpenGL on Windows and Ubuntu. Qt 6 + cgltf + cglm + SDL3_image (WebP) + WebGPU (wgpu-native): Rotating 3D Textured Model Y-Bot (Desktop) A step-by-step guide to configuring and running a static desktop project integrating Qt 6, WebGPU (wgpu-native) with WGSL shaders, the cgltf library for parsing glTF binary (.glb) files, cglm math library for Perspective, View, and Model (MVP) transformations, depth testing, SDL3_image with WebP, and smooth 90°/s rotation around the Y-axis via QTimer on Windows and Ubuntu. Note. The 3D model was downloaded from Mixamo, and an optimized low-poly version was created with Blender and exported to y-bot.glb and y-bot.webp. Source Code Executables (Windows and Linux) Live Wasm Demo [image: 1ca03a2e-1621-4831-8d97-b81a5b7dc4be.gif]
  • Presenting My Board Game made with QT

    Unsolved
    1
    0 Votes
    1 Posts
    116 Views
    No one has replied
  • QtQuick3D - Colorize model imported from .obj file by the Runtimeloader

    Unsolved
    2
    0 Votes
    2 Posts
    454 Views
    Nils SjobergN
    Change node.material = material; to node.materials = [material]; because the Model in QtQuick3D has a property called materials (a list), not a single material.
  • Recommend Qt Courses to Game development?

    Locked Unsolved
    13
    0 Votes
    13 Posts
    9k Views
    S
    Thanks for the detailed breakdown! I've been looking into Qt for game dev lately, so this information is really good to know.
  • [QT Quick 3D] QRchi shaders and QQuick3DRenderExtension

    Unsolved
    5
    0 Votes
    5 Posts
    8k Views
    W
    @JorgeT said in [QT Quick 3D] QRchi shaders and QQuick3DRenderExtension: Hi everyone. I'm trying to create a render extension node for View3d, but i cannot find any useful documentation. I saw the OutlineRender example in the QQuick3D examples, but it doesn't use any shaders at all: https://doc.qt.io/qt-6/qtquick3d-extensions-stenciloutline-example[.].html Later, i found this QRhi example on the Qt documentation, but i couldn't get it to work and it doesn't use QQuick3DRenderExtension https://doc.qt.io/qt-6/qrhi.html What I’m trying to do is apply a shader as a post-process to the View3D framebuffer using the extension property list. Could anyone either explain the QRhi example or provide a commented example that goes through each step? I have experience with OpenGL, but I just can’t get this to work. Thanks!!
  • Qt [c++] - No Qt3D rendering on older laptop

    Solved
    17
    0 Votes
    17 Posts
    11k Views
    K
    Okay, thank you for your efforts. I will close this issue now as "Not possible to support legacy hardware with a Qt6.8 Setup". Minimum requirements: Direct3D11 or GLSL best regards, kevin_d
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Physics Optimization in a Ragdoll-Based Battle Simulator (Qt 6, Mobile)

    Unsolved
    2
    0 Votes
    2 Posts
    4k Views
    No one has replied
  • 0 Votes
    2 Posts
    3k Views
    No one has replied
  • Mouse Control on Wayland: Calculating Delta Without Centering

    Solved
    3
    0 Votes
    3 Posts
    4k Views
    EndrII 0E
    Issue moved to bug tracker : : https://bugreports.qt.io/browse/QTBUG-113795 and https://bugreports.qt.io/browse/QTBUG-116493
  • Simple Qt/C++ games

    Unsolved
    85
    9 Votes
    85 Posts
    150k Views
    BondrusiekB
    @8Observer8, Nice to hear that you like it! As for the offset — it's not a bug, it's a feature ;D. I originally designed the game for a standard window size, where the position (-2, -2) hides those elements. However, when using a browser, the background can be larger, which makes some items visible.
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Tips for Optimizing Qt Performance on Cross-Platform Apps

    Unsolved
    2
    0 Votes
    2 Posts
    3k Views
    ImperoITservicesI
    Hi @meme001 Your proactive steps for UI performance on Android devices should be Utilizing Loader for deferred component initialization Minimizing constantly-updating bindings Optimizing image assets To further enhance UI responsiveness on Android, Consider this Leverage (QtQuick.Controls 2) Optimize Animations Profile with Qt Tools Reduce Overdraw Resource Management Asynchronous Operations Remember, performance optimization is an iterative process. Regular profiling & testing across different devices can provide insights into areas needing improvement.
  • Q: Qt - [c++] Correct CONNECT statements with lambda

    Solved
    11
    0 Votes
    11 Posts
    12k Views
    K
    Well thanks for all your suggestions! Thread solved. best regards
  • LAN Communication for my Multiplayer Board Game on QT/QML

    Unsolved
    2
    0 Votes
    2 Posts
    3k Views
    Pl45m4P
    @SrisharanVS said in LAN Communication for my Multiplayer Board Game on QT/QML: Could anyone guide me on how to handle LAN discovery, establish a connection, and start communicating? If you know of any similar projects, tutorials, or helpful resources, I'd really appreciate it. Start here https://doc.qt.io/qt-6/qtnetwork-programming.html
  • keyPressEvent isn't called simultaneously.

    Unsolved
    3
    0 Votes
    3 Posts
    3k Views
    BondrusiekB
    Hi, try use key handling in this way: https://stackoverflow.com/questions/23816380/using-multiple-keys-in-qt-c I implement this in my simple qt game. Can check: https://github.com/Przemekkkth/top-down-shooter-qt
  • New version of Qt I am trying to write again the code

    Unsolved opengl
    5
    0 Votes
    5 Posts
    5k Views
    ?
    I added -x instead of x and It is working better.
  • Trying To Explain To Qt That I Need QGView To Follow My Player Sprite

    Unsolved
    15
    0 Votes
    15 Posts
    12k Views
    G
    @Pl45m4 Thank you for those ideas. I'm feeling less wandering-the-wilderness now, thanks to the advice I'm getting here.
  • Q: Qt - [c++] Qt6 TextToSpeech does not use Localization

    Solved
    9
    0 Votes
    9 Posts
    7k Views
    K
    It appears as if I have mutliple engines installed on my setup. So, instead of auto *text2speech = new QTextToSpeech(this); i changed my code accordingly: for (auto const& v : QTextToSpeech::availableEngines()) { qDebug() << "available engine: " << v.toStdString(); auto *text2Speech = new QTextToSpeech(v); // find suitable locales } So I am not randomizing voices anymore. I take the first best english voice. It works. Now testing on Linux :-) best regards, kevin_d