Skip to content

Game Development

What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
862 Topics 4.0k Posts
  • adding many QPixmap images to a label

    Unsolved
    3
    0 Votes
    3 Posts
    572 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
    590 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
    378 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
    351 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
    2k 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
    2k 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
    609 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
    298 Views
    No one has replied
  • failing to create QOpenGLShaderProgram object

    Solved
    7
    0 Votes
    7 Posts
    847 Views
    S

    Running it on the newer pc with more up to date graphic card had no effect. I have the following in my main.cpp file;

    QSurfaceFormat format; format.setDepthBufferSize(24); format.setStencilBufferSize(8); format.setVersion(1, 5); format.setProfile(QSurfaceFormat::CoreProfile); QSurfaceFormat::setDefaultFormat(format);

    My code works if I set the version to 1.2 or 1.5, anything higher gives me the error that I described before;

    ERROR: 3:1: 'attribute' : not available in current GLSL version 12
    ERROR: 3:2: 'attribute' : not available in current GLSL version 12

    I can make my code work, and I'm happy with that. However, I would like to wait to click 'problem solved' until I can get an explanation of the incompatibility that I'm seeing, related to the OpenGL and the GLSL versions that I am running, and the effects that different graphics cards will have on this.

  • Qt isn't generating .h and .cpp files for QOpenGLWidget

    Solved
    13
    0 Votes
    13 Posts
    1k Views
    S

    will do, thank you!

  • 0 Votes
    1 Posts
    334 Views
    No one has replied
  • My 2D game

    Unsolved
    2
    8 Votes
    2 Posts
    691 Views
    A

    Qt C++ 2048 Game
    https://www.youtube.com/watch?v=OeNs4UyFSo0

  • 0 Votes
    2 Posts
    1k Views
    mrjjM

    Hi
    It seems to come from scripts for 2.7 used in 2.8.
    So you have to fix the script to make it run again.

  • Trying to port threejs skybox to Qt3D

    Unsolved
    2
    0 Votes
    2 Posts
    403 Views
    Q

    Bump :)

  • Qt Quick3D skybox fails on android

    Unsolved
    1
    0 Votes
    1 Posts
    467 Views
    No one has replied
  • 0 Votes
    4 Posts
    779 Views
    SGaistS

    Because that path is wrong. You are referencing the images as if it was on your file system. That's the issue.

  • 0 Votes
    14 Posts
    2k Views
    projectbavariaP

    @SGaist okey i will try