Tag Archives: howto

How to generate random number in Qt

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

Posted in Qt | Tagged , , , , , , , , , , , | 2 Comments

Most comprehensive guide to HTML5 Canvas Element

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

Posted in Qt | Tagged , , , , , , | Leave a comment

Qt 2D Game Prototype Demos SDXM

Here are some functioning pure Qt 2D game prototypes I’ve created as a foundation for my 2D game engine SDXM.

Posted in Qt, SDXM | Tagged , , , , , , , , , , | Leave a comment

Solution: Qt setMouseTracking Doesn’t Work

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

Posted in Qt | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment