User forums > Using Code::Blocks
Code completion in QT
albert:
Hi,
When I type QApplication:: and then I use code completition (ctrl+space) I see only names of functions of this class - is it possible to have all functions (properties, events etc) inherihted from others classes?
When I type QPushButton quit("quit"); and then quit. (ctrl+space) then I dont have window with completion code - why is that ? When I type QPushButton:: ive got few of thems ..
Thank You.
eranif:
Hi,
I can only take a wild guess that the declaration of a member like this:
QButton quit("quit"); --> was parsed incorrectly to a function by the parser - it can be treated by mistake to be a function name 'quit' that return QButton ...
My guess, that if you will try
QButton quit;
and then assign the value "quit" to it using QButton functions it will work.
or even
QButton *quit = new QButton("quit");
will also work.
Eran
mandrav:
Eran, you 're correctly guessing that it's not parsed but not because it is taken for a function.
It's just that for local scope, the parser ignores this case.
albert:
Hello,
--- Quote from: eranif on August 22, 2006, 04:39:58 pm ---QButton quit; and then assign the value "quit" to it using QButton functions it will work.
--- End quote ---
It doesnt for me - I am using build 24 oct 2005 on Windows (1.0RC2).
--- Quote from: mandrav on August 22, 2006, 04:59:49 pm ---Eran, you 're correctly guessing that it's not parsed but not because it is taken for a function.
It's just that for local scope, the parser ignores this case.
--- End quote ---
Ive setup settings->pluggins settings->code completion->Follow GLOBAL includes - but it didnt helped.
What I am doing wrong?
I have also problems when I type QObject:: the list doesnt seems to have all entries. I dont have for example connect() function.
Thank You.
Der Meister:
You should upgrade to a current nightly build. There were a lot of improvements and bugfixes since the release of RC2.
Navigation
[0] Message Index
[#] Next page
Go to full version