Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-3676

Qt Creator does not show autocomplete and hints in complicated calls

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • Qt Creator 13.0.0
    • Qt Creator 2.1.0-rc1
    • Editors
    • None
    • Windows 7 32-bit

    Description

      When trying to get auto-completion or arguments hint for code like this:

      Ogre::SceneNode *autoNode = mSceneMgr->getRootSceneNode()->createChildSceneNode(Ogre::Vector3(100, 0, 100));

      Editor does not show auto-completion and method arguments hint after second "->" operator. (Both getRootSceneNode() and createChildSceneNode() methods are virtual and runtime-loaded from dynamic library, but are declared with correct return type in their headers)

      Tried to #include <Ogre.h>, which contains all needed includes. Also doubled with manual includes of all needed headers (eg. #inlude <OgreSceneNode.h>, #include <OgreSceneManager.h> etc), but the problem remains.

      Also NetBeans 6.9.1 IDE shows hints and autocomplete in this place with this project and sources.

      Update 05.02.2011

      Maybe the same bug. The code below does not show 'deque' like a type, and of cause hints and autocomplete are unavailiable. (Code with Qt Creator 2.1 syntax highlight)

      #include <deque>
      void main() {
      std::deque<int> someDeq; // deque type name is not highlited
      someDeq.push_back(1); // no hints and autocomplete here
      }

      The following code shows hints well (But can not be compiled. error: 'deque' was not declared in this scope)

      #include <deque>
      void main() {
      deque<int> someDeq; // type name is now highlited
      someDeq.push_back(1); // autocomplete and hints are working
      }

      The problem solves only by adding
      using namespace std;
      and not using the ' std:: ' prefix

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            elvenfighter Elvenfighter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes