QWidget::repaint: Recursive repaint detected
Happens when calling repaint() from a paint event. This shouldn't be done.
Solution: review the code and fix it.

QPainter::begin: Widget painting can only begin as a result of a paintEvent
Happens when painting on widgets outside paint events. In Qt 3 this was possible but not in Qt 4. In 4 you can only draw on a widget in its paintEvent.
The solution for this one is to examine all the code and rewrite those parts.
So, wherever you see
Qt Code:
  1. QPainter p(someWidget)
To copy to clipboard, switch view to plain text mode 
outside the widgets paint event, then you must rewrite that code.