I originally posted this in error to the Qwt sub-forum where it's unlikely to be seen. Please could a moderator remove the version in there?
In the OnMouseMove() mf of a Win32 custom control which I am re-writing for Qt, there is some code that looks like this:
Qt Code:
Switch view
//----- Get the original erase area -----//
getMarkerRgn(&oldrgn);
//----- Draw the markers -----//
:
:
getMarkerRgn(&newrgn);
erasergn.CreateRectRgn(0,0,0,0); //Dummy rgn
erasergn.CombineRgn(&oldrgn, &newrgn, RGN_DIFF);
dc.FillRgn(&erasergn, &brush); // Background colour brush
To copy to clipboard, switch view to plain text mode
The idea being to erase the previously drawn markers after the new ones are drawn
What should I be doing in Qt?
PS is there any Qt equivalent of the Windows OnEraseBackGround() ?
PPS only three weeks Qt experience so far so please be gentle!
Many thanks
David
Bookmarks