[Qt-interest] Configure QtDesigner ui.h

Danny Price deepblue842 at googlemail.com
Fri Sep 2 21:38:22 CEST 2011


I don't get the same warnings with scoped or shared pointer...

On 2 Sep 2011, at 20:24, Thiago Macieira wrote:

> On Friday, 2 de September de 2011 19:39:52 Danny Price wrote:
>>> QScopedPointer
>> 
>> I didn't mention the Qt pointers because they seem to have issues with
>> forward-declared classes. MSVC doesn't complain but GCC warns that virtual
>> destructors will NOT be called. I don't trust them.
> 
> Only if you delete them where the class is still forward-declared.
> 
> The warning is right. And it means you probably have a trivial assignment 
> operator. You need to prevent its instantiation so the compiler won't 
> complain.
> 
> -- 
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>   Software Architect - Intel Open Source Technology Center
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list