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

Using directives importing single classes not recognized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • Qt Creator 2.0.1
    • C/C++/Obj-C++ Support
    • None

      If you import a single class with a using directive QtCreator is unable to provide autocompletion.

      For example, this works:

      #include <vector>
      using namespace std;
      void main()
      {
      vector blubb;
      cout << blubb.size(); // using autocompletion for .size()
      }

      While this doesn't work:

      #include <vector>
      using std::vector;
      void main()
      {
      vector blubb;
      cout << blubb.size(); // no autocompletion available
      }

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

            erikv Erik Verbruggen
            victorhahn Victor Hahn
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes