Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
Qt Creator 2.1.0-rc1
-
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