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”