[quote author="Andre" date="1341390491"]Back on topic: I don't think you'll see much happening.
First of all, you completely overrode the painting of the whole dialog. So, perhaps you'll see a small dot, but not much else being painted. Make sure to (in this case: first) call the base implementation:
@
QDialog::paintEvent(paintEvent);
@
Then, on the dot you draw itself. I doubt you'll even see that. The problem is: you are painting it right at the mouse cursor. And what is that spot overdrawn with? Exactly: the mouse cursor.
[/quote]
Nice analysis Andre
[quote author="W.K.S" date="1341338884"]Thanks to both of you.
You're right koahnig - I failed to check that the paintEvent() is actually called and that's where the problem was.
Thanks a lot :) [/quote]
Now I am wondering why it might have worked ?