How about adding a const QColor &color parameter to the draw function? Where are you calling draw() from?
Forum Rules
Bookmarks