I'm consistently getting "warning C4946: reinterpret_cast used between related classes: 'QObject' and 'QLabel'" when compiling code like the following in VC7:

Qt Code:
  1. void myFunction(QWidget* theWidget)
  2. {
  3. QLabel* aLabel = qobject_cast<QLabel*>(theWidget);
  4. if (aLabel)
  5. {
  6. ...
  7. }
  8. }
To copy to clipboard, switch view to plain text mode 

I'm having a hard time to understand why qobject_cast would issues this warning and was hoping for some help to better understand what I'm doing/using wrong?

I (always) compile on the Windows platform with the -Wall and -WX options.