Danny Price schreef:
> It's a bad idea to use filepaths with spaces or special characters, in 
> any IDE. It will likely break cross-platform. If you're including such 
> a path that you cannot change, add the directory path to the 
> INCLUDEPATH variable of the pro file (assuming you're using qmake) 
> with escapes for the spaces.
I agree, that is why I have separate settings for the different platforms.
I have a setting in my locations.pri file that says something like:
THIRDPARTYLIB="C:\Program Files\THIRDPARTY"
and in my .pro file it says
INCLUDPATH += $${THIRDPARTYLIB}/include

Adding double quotes around $${THIRDPARTYLIB}/include does not seem to help.

I can (and have) moved the files to a location where the problem does 
not occur, but I thought to let you know about the issue. I guess I will 
not be the only one to bump into this problem on Windows where 
directories and filenames with spaces in them is extremely common.

Robert

>
> On Thu, Dec 3, 2009 at 9:51 AM, Robert de Vries 
> <robert.h.de.vr...@gmail.com <mailto:robert.h.de.vr...@gmail.com>> wrote:
>
>     Hi,
>
>     I have another minor nuisance. When an include file comes from a
>     path that has spaces in it, the editor does not seem to be able to
>     find it.
>     It is displayed with a green squiggly line below it. The code
>     compiles fine, but Qt Creator cannot handle it properly.
>     I am using Qt Creator 1.3.0 on Windows XP.
>
>     Regards,
>
>         Robert
>
>     _______________________________________________
>     Qt-creator mailing list
>     Qt-creator@trolltech.com <mailto:Qt-creator@trolltech.com>
>     http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>   

_______________________________________________
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to