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

Code completion does not work for std::vector of objects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 2.7.0-rc, Qt Creator 3.2.0
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Environment:
      ubuntu 12.4
    • Commits:
      97d3d9ac0946f3be0e036b70401352e3ddaeb8fc

      Description

      Qtcreator editor does not autocomplete members of objects which are inside a vector

      #include <vector>
      
      struct A
      { int member; };
      
      void f()
      {
          std::vector<A> a;
      //     a[0].m // no completion
      //    a.begin()->m // no completion
      }
      
      

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                kosjar Nikolai Kosjar
                Reporter:
                dpinol Daniel Pinyol
              • Votes:
                9 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes