Results 1 to 3 of 3

Thread: Qt Eclipse can not recognise some type and function!why?

  1. #1
    Join Date
    Jan 2008
    Posts
    7
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt Eclipse can not recognise some type and function!why?

    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:
    Qt Code:
    1. delete ui.list->currentItem();
    To copy to clipboard, switch view to plain text mode 
    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?

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Eclipse can not recognise some type and function!why?

    Delete is not an ordinary function. It is a C++ language keyword.

  3. The following user says thank you to marcel for this useful post:

    greenoaktree (21st January 2008)

  4. #3
    Join Date
    Jan 2008
    Posts
    7
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Smile Re: Qt Eclipse can not recognise some type and function!why?

    Quote Originally Posted by marcel View Post
    Delete is not an ordinary function. It is a C++ language keyword.
    Thank you!I will look up it in c++ reference

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.