Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, March 2008
qt eclipse problem


Message 1 in thread

Hello,

I don't know if this is the right mailing list to ask, but i hope so.

I 'm a student and i'm working on a qt project as my semester project.
I'm using kubuntu 8.04 (but i have the same problem with 7.10) and latest 
eclipse, cdt and eclipse qt plugin.
I'm also using qt 4.3

Now to my problem. Auto completion does only work as it should.
I have a working auto completion for all the global QT things, like qswap etc.
I also get auto completion for Classes when i declare a new variable, like 
QSomething, then when i type Q, i get the list of all classes.
But when i then try to get the autocompletion for those classes it doesent 
work.
But it works for QObject objects, but not for all others. I have no idea why.
Autocompletion works for classes i made, i can autocomplete their functions. 
But i cant autocomplete their inherited functions, when they inherit from 
QSomething. But i can autocomplete the inherited functions when the class 
inherits directly from QObject.

I have no idea what the problem is. any ideas?

thanks

Beat Wolf

--
 [ signature omitted ] 

Message 2 in thread

Hi,

unfortunately, I can't help you since I decided to switch back from 
eclipse because of the very slow autocompletion.
How did you get that going?

Bye,
Magnus

asraniel wrote:
> Hello,
> 
> I don't know if this is the right mailing list to ask, but i hope so.
> 
> I 'm a student and i'm working on a qt project as my semester project.
> I'm using kubuntu 8.04 (but i have the same problem with 7.10) and latest 
> eclipse, cdt and eclipse qt plugin.
> I'm also using qt 4.3
> 
> Now to my problem. Auto completion does only work as it should.
> I have a working auto completion for all the global QT things, like qswap etc.
> I also get auto completion for Classes when i declare a new variable, like 
> QSomething, then when i type Q, i get the list of all classes.
> But when i then try to get the autocompletion for those classes it doesent 
> work.
> But it works for QObject objects, but not for all others. I have no idea why.
> Autocompletion works for classes i made, i can autocomplete their functions. 
> But i cant autocomplete their inherited functions, when they inherit from 
> QSomething. But i can autocomplete the inherited functions when the class 
> inherits directly from QObject.
> 
> I have no idea what the problem is. any ideas?
> 
> thanks
> 
> Beat Wolf
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/

--
 [ signature omitted ] 

Message 3 in thread

Hi,

On Wed, Mar 12, 2008 at 9:54 PM, Magnus Brand <magnus.brand@xxxxxxx> wrote:
>  unfortunately, I can't help you since I decided to switch back from
>  eclipse because of the very slow autocompletion.
>  How did you get that going?

when did you try that feature?

Auto-Completion is very fast for Eclipse Europe (3.3).

>  > I don't know if this is the right mailing list to ask, but i hope so.

Are you aware of the qt eclipse integration?
http://trolltech.com/developer/downloads/qt/eclipse-integration-download

Most related questions have been posted to the preview feedback mailing list:
http://lists.trolltech.com/qt4-preview-feedback/

>  > I have no idea what the problem is. any ideas?

I can't tell, but maybe this is a starting point:
http://lists.trolltech.com/qt4-preview-feedback/2008-01/msg00018.html#msg00018

Regards, Niko

--
 [ signature omitted ] 

Message 4 in thread

Hi,

well, I tried Eclipse 3.2. Would be really nice, if that has changed in 3.3.

Magnus

Niko Paltzer wrote:
> Hi,
> 
> On Wed, Mar 12, 2008 at 9:54 PM, Magnus Brand <magnus.brand@xxxxxxx> wrote:
>>  unfortunately, I can't help you since I decided to switch back from
>>  eclipse because of the very slow autocompletion.
>>  How did you get that going?
> 
> when did you try that feature?
> 
> Auto-Completion is very fast for Eclipse Europe (3.3).
> 
>>  > I don't know if this is the right mailing list to ask, but i hope so.
> 
> Are you aware of the qt eclipse integration?
> http://trolltech.com/developer/downloads/qt/eclipse-integration-download
> 
> Most related questions have been posted to the preview feedback mailing list:
> http://lists.trolltech.com/qt4-preview-feedback/
> 
>>  > I have no idea what the problem is. any ideas?
> 
> I can't tell, but maybe this is a starting point:
> http://lists.trolltech.com/qt4-preview-feedback/2008-01/msg00018.html#msg00018
> 
> Regards, Niko
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/

--
 [ signature omitted ] 

Message 5 in thread

On 2008-03-12 15:23:38 -0400, asraniel <asraniel@xxxxxxx> said:

> Hello,
> 
> I don't know if this is the right mailing list to ask, but i hope so.
> 
> I 'm a student and i'm working on a qt project as my semester project.
> I'm using kubuntu 8.04 (but i have the same problem with 7.10) and latest
> eclipse, cdt and eclipse qt plugin.
> I'm also using qt 4.3
> 
> Now to my problem. Auto completion does only work as it should.
> I have a working auto completion for all the global QT things, like qswap etc.
> I also get auto completion for Classes when i declare a new variable, like
> QSomething, then when i type Q, i get the list of all classes.
> But when i then try to get the autocompletion for those classes it doesent
> work.
> But it works for QObject objects, but not for all others. I have no idea why.
> Autocompletion works for classes i made, i can autocomplete their functions.
> But i cant autocomplete their inherited functions, when they inherit from
> QSomething. But i can autocomplete the inherited functions when the class
> inherits directly from QObject.
> 
> I have no idea what the problem is. any ideas?
> 
> thanks
> 
> Beat Wolf

I use Qt with Eclipse CDT 4.0.3 (OS X 10.4.11) and the auto completion 
seems to work fine for my setup. The indexer in eclipse is _very_ picky 
about include paths. You have to get them setup just right or nothing 
will work. How you set them up depends on your style of "#include".

If you use #include <QtCore/QString> then you probably only need to 
have "${QTDIR}/include" in the include path (Paths & Symbols) in the 
CDT Project properties.

If you use "#include <QString> then you will need 
${QTDIR}/include/QtCore in the Paths & Symbols. You will need to enter 
each of the Qt include directories manually. Make sure you have the 
C/C++ language selected when you add them and not the "Assembly" when 
you add the paths.

Also, if your makefile outputs verbose make commands that include all 
the -I{some path} then Eclipse _Should_ be "auto discovering" all those 
paths for you.

You may need to manually rebuild the index after these changes.

if you read 
<http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg08941.html> that will 
give you some information about getting the indexer to log its 
activities to a log file. Caution: The log file can be _very_ large.. 
but does prove useful when trying to track down why the indexer is 
failing.

Here is another post that might help:

<http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.cdt/msg14539.html>

Hope all that helps.

---
Mike Jackson

--
 [ signature omitted ]