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 disabled by default. This is how I got it to work: Continue reading “Solution: Qt setMouseTracking Doesn’t Work”
Overriding QWidget Events
For the most part, Qt comes with a bunch of convenience widgets built on top of their own QWidget. They may provide very specific features and might suit your needs perfectly. But when you want to implement something that is really unique, then you’ll have to be able to engage the internal processes that make your user-friendly interactions so intuitive. One way is to override QWidget’s default events. Continue reading “Overriding QWidget Events”
Hello World with QPainter
This is the most basic of basic tutorials when it comes to computer programming. It is virtually done to death. The basic idea is for you as the programmer to be able to send a message to the computer and have it return the message to you as output. Originally, this would be done via command-line or command-prompt, a scary black void of an interface. So in this case, I’ll show you how to actually engage the user by hooking into the default GUI mainWindow. Continue reading “Hello World with QPainter”
Qt 4.8.5 Prerequisites
You must have the following files installed on your Windows computer in order to follow my tutorials: Continue reading “Qt 4.8.5 Prerequisites”