Qt-interest Archive, August 2006
problem with QDate
Message 1 in thread
Hello everyone,
i am trying to run an if statement with condition:
QDate::isValid(year,month,day)
in QtDesigner.
but the compiler returns an error:
dateinputform.ui.h:299: error: incomplete type 'QDate' cannot be used to name a
scope
make: *** [.obj/dateinputform.o] Error 1
i have #included <qdate.h>..
Why do i get an error?
nass
--
[ signature omitted ]
Message 2 in thread
)\(@sS wrote:
> Why do i get an error?
Probably because you made a mistake in the code that we have to guess
with our amazing psychic powers because you're not showing it to us :)
--
[ signature omitted ]
Message 3 in thread
Hey buddy,
I have QT 4.1.4 Commercial, a quick search in the include dir does not list
any file named "qdate.h", but it does list "qdate".
Directory of C:\Qt\4.1.4\include\QtCore
06/20/2006 01:17 AM 24 QDate
06/20/2006 01:17 AM 24 QDateTime
06/20/2006 01:17 AM 48 qdatetime.h
Please check it out.
Regards,
Srinivasa Raju
-----Original Message-----
From: )\(@sS [mailto:athanasios.silis@xxxxxxxxx]
Sent: Friday, August 04, 2006 3:56 PM
To: qt-interest
Subject: problem with QDate
Hello everyone,
i am trying to run an if statement with condition:
QDate::isValid(year,month,day)
in QtDesigner.
but the compiler returns an error:
dateinputform.ui.h:299: error: incomplete type 'QDate' cannot be used to
name a
scope
make: *** [.obj/dateinputform.o] Error 1
i have #included <qdate.h>..
Why do i get an error?
nass
--
[ signature omitted ]
Message 4 in thread
"G.V.Srinivasa Raju" <srinivasa.raju.gv@xxxxxxxxx> wrote in message
news:eavfh1$7v$1@xxxxxxxxxxxxxxxxxxxxx
> Hey buddy,
>
> I have QT 4.1.4 Commercial, a quick search in the include dir does not
list
> any file named "qdate.h", but it does list "qdate".
Qt allows including a header with or without the extension.
#include <qdate> is the same as #include <qdate.h>
I usually include the extension to distinguish it from std
headers. It works fine either way.
The OP's error is likely somewhere else.
--
[ signature omitted ]
Message 5 in thread
On 04.08.06 10:44:13, Duane Hebert wrote:
>
> "G.V.Srinivasa Raju" <srinivasa.raju.gv@xxxxxxxxx> wrote in message
> news:eavfh1$7v$1@xxxxxxxxxxxxxxxxxxxxx
> > Hey buddy,
> >
> > I have QT 4.1.4 Commercial, a quick search in the include dir does not
> list
> > any file named "qdate.h", but it does list "qdate".
>
> Qt allows including a header with or without the extension.
Not really.
> #include <qdate> is the same as #include <qdate.h>
This only works on win32 platforms, because their filesystem lacks
case-sensivity. On any other platform Qt support you either have
#include <QDate> or #include <qdate.h>
> I usually include the extension to distinguish it from std
> headers. It works fine either way.
Well, if you use the correct platform-independent version you can still
distinguish it from std headers, due to the beginning capital letters.
Andreas
--
[ signature omitted ]
Message 6 in thread
"Andreas Pakulat" <apaku@xxxxxx> wrote in message
news:eavvu5$tj0$1@xxxxxxxxxxxxxxxxxxxxx
> Not really.
>
> > #include <qdate> is the same as #include <qdate.h>
>
> This only works on win32 platforms, because their filesystem lacks
> case-sensivity. On any other platform Qt support you either have
> #include <QDate> or #include <qdate.h>
Right.
> > I usually include the extension to distinguish it from std
> > headers. It works fine either way.
>
> Well, if you use the correct platform-independent version you can still
> distinguish it from std headers, due to the beginning capital letters.
or just include it with the extension and the correct case.
--
[ signature omitted ]