#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
----- Original Message -----
From: Sunil Thaha
To: [email protected]
Sent: Saturday, June 06, 2009 7:55 PM
Subject: Re: [Qt-creator] Auto include classes ?
It doesn't auto-complete the headers. The QString/QByteArray works because
the one of your header files inturn includes QString.
PS: Its Qt and not QT :-)
2009/6/6 Patric <[email protected]>
I was wondering, is QT Creator auto including some of the QT Classes in
the headers ?
I have noticed that my class is initializing QString without the
#include <QString>
Also, I have created a header with namespace in it, and in this
namespace there was QByteArray object. And the code is working without
include.
I thought I should include every class in my program.
Patric
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4098 (20090522) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator
------------------------------------------------------------------------------
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4098 (20090522) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4098 (20090522) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator