[Qt-creator] Jump to definition and encoding

Ladnar, Marc Marc.Ladnar at ksab.kroschu.com
Wed Jul 29 11:34:20 CEST 2009


Resolving the link and checking in pro file contents if the file exists 
inside the project and open the matching original file might solve this 
problem.

Marc 

-----Ursprüngliche Nachricht-----
Von: Ladnar, Marc 
Gesendet: Mittwoch, 29. Juli 2009 11:30
An: qt-creator
Betreff: Re: [Qt-creator] Jump to definition and encoding

Yes, he jumps to the linked file. Is that something that can be changed 
or do I have to life with that?

Marc 

-----Ursprüngliche Nachricht-----
Von: Eike Ziller [mailto:eike.ziller at nokia.com]
Gesendet: Mittwoch, 29. Juli 2009 11:21
An: qt-creator at trolltech.com
Betreff: Re: [Qt-creator] Jump to definition and encoding

Hi,

On Jul 29, 2009, at 9:51 AM, ext Ladnar, Marc wrote:

> Hello,
>
> I figuered another problem in Version 1.2.1.
>
> I have e.g. 3 files:
>     dir1/X.h
>     dir1/X.cpp containing #include Y.h, project.pro contains 
> INCLUDEPATH += dir3
>     dir2/Y.h
>     dir3/Y.h linked to dir2/Y.h for collecting all project relevant 
> header files in dir3 (I have very deep project structure with many
> classes)
>
> When I jump from X.cpp via a shortcut into Y.h, it tells me the
> error: "Could not decode ... with System-encoding"
> Opening Y.h from project tree, I don't have any encoding errors.
>
> Is it possible that the "jump to definition" finds my link on the 
> original file and that causes the problem?

Might be. If it opens a file that is not referenced in a pro file of 
your loaded projects (for which you set the encoding?) it would not be 
able to figure out.
You can check e.g. the tool tip of the open editors combo box to find 
out which file is actually opened (dir2/Y.h or dir3/Y.h).

++ Eike

--
Eike Ziller
Software Engineer
Nokia, Qt Software
Phone  +49 (0)30 6392 3255
Fax    +49 (0)30 6392 3256
E-mail eike.ziller at nokia.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






More information about the Qt-creator-old mailing list