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

code assist do no recognize a object when it is in the form of STL iterator.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • Qt Creator 2.3.1
    • Editors
    • None
    • Qt SDK Version: qtsdkinstaller-x32-2011-10-18-Ubuntu8.04.4LTS.run

      Qt creator version:
      Qt Creator 2.3.1
      Based on Qt 4.7.4 (32 bit)
      Built on Sep 21 2011 at 11:16:49
      From revision f184ced2e1

      SDKTestRound27

    Description

      steps:
      1. Define a struct colorcal and a std::vector<colorcal*>
      struct colorcal

      { QRgb rgb; int num; }

      ;
      2. define a function to use it.
      fun()
      {
      colorcal* c = new colorcal;
      c. //when input the ".", it can be automatically change to "->", and the member variable "rgb" and "num" can be listed
      // See assit.png.

      std::vector<colorcal*> colorvector = new std::vector<colorcal>;
      colorvector.push_back(c);
      for(std::vector<colorcal*>::const_iterator it = colorvector->begin();it != colorvector->end();it++)

      { (*it). //when input the ".", it can not be change to "->" and the member variable "rgb" and "num" cannot be listed //but (*it) is actually a type of colorcal* }

      }

      Attachments

        Issue Links

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

          Activity

            People

              erikv Erik Verbruggen
              liuuxlii Liu LI
              Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes