Tags2d 4.8.5 advanced c++ class code compiler custom demo dependencies digia download engine event files fix functions game gcc hello world howto keyPressEvent libraries method mingw nokia onkeydown onkeypress onkeyup onmousedown onmouseup override painting prerequisite protected qpainter qt qt creator qwidget required setup source system tutorial windows
Tag Archives: howto
If you thought Qt provided you with a robust count of math algorithms already, you’ll be in for a surprise. There is qrand(), but it doesn’t quite provide you with the user-friendliness of other languages. For example, sometimes you want … Continue reading
http://qt-project.org/doc/qt-4.8/qtwebkit-guide-canvas.html This is the most comprehensive guide to HTML5 canvas I’ve seen so far on the Internet. Even Mozilla doesn’t explain it this well. How ironic that Qt has written up such a proficient guide even though their framework doesn’t … Continue reading
Here are some functioning pure Qt 2D game prototypes I’ve created as a foundation for my 2D game engine SDXM.
By default, Qt will set any QWidget into a QMainWindow unless you set it yourself. This is possibly why you can’t setMouseTracking in your default QWidget. You need to enable setMouseTracking if you want real-time mouse position tracking; it is … Continue reading