[Qt-creator] Auto include classes ?
Thorbjørn Lindeijer
thorbjorn.lindeijer at nokia.com
Mon Jun 8 12:12:28 CEST 2009
ext Patric wrote:
> #ifndef OIDNAMESPACES_H
>
> #define OIDNAMESPACES_H
>
>
>
>
>
> namespace Test {
>
> static const QByteArray test = "1";
>
> }
>
> #endif // OIDNAMESPACES_H
>
>
> Check this out. It works. But I think it shouldn't.
>
> Patric
And indeed it doesn't:
oidnamespaces.h:11: error: ‘QByteArray’ does not name a type
The only reason that might work is because the header is included only
in files that have already included QByteArray.
Regards,
Bjørn
--
Thorbjørn Lindeijer
Software Engineer
Nokia, Qt Software
More information about the Qt-creator-old
mailing list