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
  • A small problem with qRand().

    11
    0 Votes
    11 Posts
    8k Views
    D
    Which OS are you using? Under any 32-bit Linux I have access RAND_MAX is 2^32 - 1.
  • Setting up Opengl ES2 in Qt

    7
    0 Votes
    7 Posts
    6k Views
    M
    You can write ogl es 2.0 compliant OpenGL code on desktop using GLEW for instance. Then again I dont use windows to do so, on Linux I just install the glew packages from apt and compile away.
  • Basic question : how to develop games in Qt.

    6
    0 Votes
    6 Posts
    5k Views
    sierdzioS
    Ok, well, I am personally more into C++ side, and have made just a few simple projects in QML, so I might not be the best guy to ask. But for mobile, QML is definitely a great choice - very flexible, very (and here I mean really, REALLY very) easy to learn, and yet quite powerful. About the viewer - again, it's just one of a few options, and there will be major changes here in Qt5. For the time being, let's focus on Qt4. You can use QML viewer to run plain QML/Js projects. So, it's not a necessity, more a convenience helper. You can easily create your own app without the viewer, simply use QtDeclarative module - the widget that displays QML is called QDeclarativeView, IIRC. It also gives you additional benefit of C++ - you can easily code a "mixed" app, where some parts are done by QML, even by some graphic designers with no programming skills, while coders make the C++/ JavaScript backend.
  • OpengGL Shader Program fails

    28
    0 Votes
    28 Posts
    16k Views
    S
    Well ,currently can get it working with inline string typed shaders.shader files somehow don't get loaded.Also I see that the best thing is to use native (non Gt wrappers) OpenGL libs
  • QtGraphicsView collision problem

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Problem using QPainter for overpainting in QGLWidget (textures destroyed)

    4
    0 Votes
    4 Posts
    4k Views
    I
    gDEBugger showed that after a while the texture object in memory exists, but its size is zero
  • Qt and DirectX for games

    3
    0 Votes
    3 Posts
    5k Views
    L
    I've tried to use some files from the DirectX SDK with MinGW with no luck. Please keep in mind that I had no luck - there is possibly a way I do not know of.
  • [Request] Importing images source code using purely C++

    5
    0 Votes
    5 Posts
    4k Views
    T
    Hi, Check about QGraphicsPixmapItem and QPixmap classes, it should be a good begin!
  • QWidget in memory. problem with events.

    7
    0 Votes
    7 Posts
    4k Views
    G
    System events (what mouse and keyboard are typically) are send in a different way: sendSpontanousEvent, which is an internal Qt method. I'm not 100% sure, if that can be achieved the way you try to do it...
  • [Solved] Static qml app shows only white window.

    10
    0 Votes
    10 Posts
    6k Views
    M
    Be sure and edit your post title to add [Solved] at the beginning. Thanks!
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • [SOLVED]glutMouseMotion in QGLWidget

    5
    0 Votes
    5 Posts
    5k Views
    S
    thanks that trick work for QGLWidget also.. Thank you..
  • [solved] how do i get the current volume of device in qt?

    6
    0 Votes
    6 Posts
    4k Views
    K
    Hi Tratstil, Can you please share some more details about how you solve the problem. I am also using Phonon in one of my project. But when I change volume using volume key it dose not affect volume to Phonon AudioObject. You said you set application name and it solve your problem ? Are you referring to QCoreApplication::setApplicationName ? Thanks, Kunal
  • IndieLib for Qt

    2
    0 Votes
    2 Posts
    2k Views
    T
    What is indielib doing?
  • Where to find info on Qt Games API

    5
    0 Votes
    5 Posts
    5k Views
    Q
    This link should place you directly on the page: http://harmattan-dev.nokia.com/docs/library/html/libqtgameopengles2/main.html?tab=1 The trick is to copy the URL by right-clicking the link pointing to it in the navigation. I know, not the most usable way.
  • How do I keep Highscores at qml app.

    4
    0 Votes
    4 Posts
    3k Views
    B
    thanks very muxh. I got it :)
  • QML Fragment shader acting strangely with Gradient background

    6
    0 Votes
    6 Posts
    4k Views
    C
    Alright, bug report posted "here":https://bugreports.qt.nokia.com/browse/QTCOMPONENTS-1074
  • Where can I get the missing QtLogo and Patch classes of "Hello GL" Example?

    13
    0 Votes
    13 Posts
    8k Views
    K
    this information we have been helpful thank you!
  • Modern OpenGL pipeline implementation in Qt

    8
    0 Votes
    8 Posts
    4k Views
    S
    I think I got you.You mean packing different data for the vertex buffer in a single vertex array.Like vertices positions,color, like : @ GLfloat vertAndColors[]={ 23.0f,12.0f,23.43f,/vertex 1 /0.23f,0.75f,1.0f.1.0f / RGBA color for that vertex/ , .... ...... ........ } @ ?
  • Problem using a 3D engine with SFML and Qt

    3
    0 Votes
    3 Posts
    5k Views
    A
    Since I am using SFML 2 this is a deprecated function so I cannot use it, but I have used it's equivalent - Save/Restore GLStates but to no avail.