Why would someone override paintEvent to just do this:


Qt Code:
  1. opt.init(this);
  2. QPainter p(this);
  3. style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
To copy to clipboard, switch view to plain text mode