PDA

View Full Version : Qt Eclipse can not recognise some type and function!why?



greenoaktree
20th January 2008, 18:13
My developing platform is Qt Eclipse + CDT+MinGW+GDB+QT 4.3.3.When I write code in Eclipse,I can not see the type hierarchy and declaration of some types and functions.For example,the function delete in this line below:

delete ui.list->currentItem();
When I selected "delete" and right click it,choose Open declaration or Open type hierarchy,there is a warning that "Select text cannot be mapped to a symbol name" or "Cannot resolve selected text to a define type".
:(
The project can be compiled.
Anyone know how to deal with it?:confused:

marcel
20th January 2008, 19:23
Delete is not an ordinary function. It is a C++ language keyword.

greenoaktree
21st January 2008, 07:51
Delete is not an ordinary function. It is a C++ language keyword.
Thank you!I will look up it in c++ reference:D