[Qt-creator] QStringList Error in Qt Creator
Ladnar, Marc
Marc.Ladnar at ksab.kroschu.com
Tue Jul 21 06:49:54 CEST 2009
Hi Shaun,
did you really comment all of your code containing QStringList? In
headers, too?
This can happen, too, if you have a "QStringList *list" in your header
with an forward declaration "class QStringList" and using this pointer
somewhere in your code. Maybe a "delete list" or something like that. In
hat case the compiler wants to have the classdescription of QStringList.
Are you maybe compiling on an older Qt-Version? Qt-Creator uses a newer
Version (4.5+) of Designer that is not really compatible with older moc
binaries (4.5-). Maybe you could check your .ui files for something like
QStringList. But I don't think that this is the problem.
Hope you find your problem,
Marc Ladnar
-----Ursprüngliche Nachricht-----
Von: Shaun van Wyngaard (Home) [mailto:shaungvw at gmail.com]
Gesendet: Montag, 20. Juli 2009 19:15
An: qt-creator at trolltech.com
Betreff: Re: [Qt-creator] QStringList Error in Qt Creator
Why would I need to include QStringList if as I explained, I commented
everything out, and it still gave me this error?
--------------------------------------------------
From: "Daniel Teske" <daniel.teske at nokia.com>
Sent: Monday, July 20, 2009 11:43 AM
To: <qt-creator at trolltech.com>
Subject: Re: [Qt-creator] QStringList Error in Qt Creator
> On Sunday 19 July 2009 20:09:17 ext Shaun van Wyngaard (Home) wrote:
>> I am not sure what is going on, but for some strange reason, I
>> started getting the following error
>>
>> `QStringList' does not name a type
>>
>> when I was working on a program. I started commenting out sections of
>> my code, trying to get rid of the error to the point that everything
>> possible was commented out, to no avail. I then exited Qt Creator,
>> and deleted all extra files that get created automatically, and
>> restarted Qt Creator.
>> Again, the same error. I then downloaded ver. 1.2.80 built on June
>> 17th, started fresh with a new project, brought in my old files,
>> again, the same error. Yet, if I open up a previously written
>> (different) program, it compiles fine. Is it my code? Because not
>> much in it anymore, or has Qt Creator written a file somewhere that
>> is storing info on this project, because it is the same project name
>> as before I tried starting over again.
>>
>> Thanks.
>
> You need to #include <QStringList>
>
> daniel
> _______________________________________________
> 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
More information about the Qt-creator-old
mailing list