title: Call parent class' paint event in derived class?
body: <p>In a <code>QDockWidget</code> derived class I <a href="http://qt-project.org/forums/viewthread/25664" rel="nofollow noreferrer">enable style sheet</a> support as follows:</p>
  
  <pre><code>void CDockWidget::paintEvent(QPaintEvent *event)
      {
          QStyleOption opt;
          opt.initFrom(this);
          QPainter p(this);
          this-&gt;style()-&gt;drawPrimitive(QStyle::PE_Widget, &amp;opt, &amp;p, this);
          // call QDockWidget::paintEvent(event) here ???????
          // I have called QDockWidget::paintEvent(event) here, but did not notice any difference 
      }
  </code></pre>
  
  <p>Question: Do I have to call the parent class <code>paintEvent</code> or is this wrong (if so please elaborate). In the original <a href="http://qt-project.org/forums/viewthread/25664" rel="nofollow noreferrer">code example</a> the parent function is <strong>NOT</strong> called, but I wonder if this is correct? It would miss any functionality there, wouldn't it?</p>
  
  <p>Remark: The above code allows to use style sheets with derived classes as described in:
  <a href="https://stackoverflow.com/questions/26206492/qt-stylesheet-in-derived-class-in-c-namespace-selector">Qt stylesheet in derived class in C++ namespace (selector)</a></p>