I am surprised it compiles at all!The code
below runs under Qt 3, but not Qt 4. The problem occurs in the drawPBS
method in the Main_Widget class when trying to paint pbs.
Mixing Qt3 and Qt4 is BAD!
Specially when dealing with painting, since painting (among other things) has been drastically changed in Qt4, one of the changes is that painting in Qt4 is only done in paintEvent() - which will explain the error you are getting.
You should port your code to Qt4 - proper!
Bookmarks