On Wednesday, 11 de January de 2012 16.39.52, Lincoln Ramsay wrote:
> On 01/11/2012 04:06 PM, ext Ismael Luceno wrote:
> > error: invalid static_cast from type 'QObject*' to type
> > 'QAndroidPlatformScreen*'
>
> Is this GCC 4.6 by any chance?
>
> I've had a report of it failing to compile some moc-generated code in my
> project too. I don't know this code but in my code's case, the error
> looked bogus to me (ie. it was a perfectly valid use of static_cast as
> far as I'm aware).

If a static_cast fails, it's because the compiler cannot prove that the two
classes are related by non-virtual inheritance.

You probably forgot an #include.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to