title: Can't override VideoWidget paintEvent() in QT C++
body: <p>I'm trying to draw some shapes over a VideoWidget from the Phonon library, but I can't override the paintEvent() method.</p>
  
  <p>If I try to implement the method like this:</p>
  
  <pre><code>void Phonon::VideoWidget::paintEvent(QPaintEvent *event){
      QPainter painter(this);
      painter.setPen(QPen(Qt::red,3));
      qDebug()&lt;&lt; "repintando";
      painter.drawEllipse(500,500,100,100);
  }
  </code></pre>
  
  <p>I get this error: no ‘void Phonon::VideoWidget::paintEvent(QPaintEvent*)’ member function declared in class ‘Phonon::VideoWidget’</p>
  
  <p>So I decided to create a myVideoWidget header with the protected method paintEvent and implemented it in mainwindow.cpp like this:</p>
  
  <pre><code>void myVideoWidget::paintEvent(QPaintEvent *event){
      QPainter painter(this);
      painter.setPen(QPen(Qt::red,3));
      qDebug()&lt;&lt; "repintando";
      painter.drawEllipse(500,500,100,100);
  }
  </code></pre>
  
  <p>And the program runs but it doesn't draw anything or displays the "repintando" message.</p>
  
  <p>Can anyone help me? What am I doing wrong?</p>
  
  <p>Thank you very much!</p>