[Qt-creator] Auto include classes ?
Patric
userqt at gmail.com
Sat Jun 6 22:05:52 CEST 2009
#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: qt-creator at trolltech.com
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 <userqt at gmail.com>
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
Qt-creator at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator
------------------------------------------------------------------------------
_______________________________________________
Qt-creator mailing list
Qt-creator at trolltech.com
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090606/07cfd1e2/attachment.html
More information about the Qt-creator-old
mailing list