title: QWidget::paintEngine: Should no longer be called in a QTreeWidget derived class
body: <p>I have a class, <code>MyTree</code>, which derived from <code>QTreeWidget</code> and</p>
  <pre><code>void MyTree::paintEvent(QPaintEvent *event)
  {
      QPainter painter(this);
  }
  </code></pre>
  <p>causes to raise the following issue,</p>
  <blockquote>
  <p>QWidget::paintEngine: Should no longer be called</p>
  <p>QPainter::begin: Paint device returned engine == 0, type: 1</p>
  </blockquote>
  <p>Could someone please help me to solve the problem?</p>