Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    QtCreator 2.1 autocomplete

    Tools
    4
    9
    3413
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      daniil last edited by

      Hi,

      I have downloaded an Qt Creator 2.1, but auto complete doesn't work for standard library. I have MinGw that I have downloaded from mingw web site.

      @
      #include <string>

      int main() {

      std:: // string type doesn't appear, but it appears if I press Ctrl + Space without std:: .

      std::string v;

      v. // Here also nothing is appeared.

      }
      @
      Please let me know if I describe the problem not clearly. I can send screenshots.

      Regards,
      Daniil

      Edit: Remember QT is QuickTime, use tag @ for code

      1 Reply Last reply Reply Quote 0
      • M
        MarkoSiroki last edited by

        Try "using namespace std;" before main.

        1 Reply Last reply Reply Quote 0
        • D
          daniil last edited by

          I tried. It works this case

          string mystr = "hello, world";
          mystr. // auto complete works

          But still doesn't work when
          std::string mystr = "hello, world";
          mystr. // auto complete don't work.

          std:: // auto complete don't work.

          Is it a bug? I am not sure but previous version of qtcreator seems worked.

          1 Reply Last reply Reply Quote 0
          • V
            vinb last edited by

            do you need using 'std::' if u are using namespace?

            1 Reply Last reply Reply Quote 0
            • D
              daniil last edited by

              I may not to use std::. Actually I like to use it.
              Anyway the question is about why it doesn't work? As I remeber it worked on previouse versions.
              It seems that a bug.

              1 Reply Last reply Reply Quote 0
              • V
                vinb last edited by

                i tried it a minute ago on my linux machine and it just worked as it should be.
                sorry if i wasn't any help.

                1 Reply Last reply Reply Quote 0
                • D
                  daniil last edited by

                  What MinGW do you use? I use a MinGW from mingw.org. I think it depends on it. Last time I used which one from Nokia.

                  1 Reply Last reply Reply Quote 0
                  • V
                    vinb last edited by

                    im working with a linux distro and dont compile for windows, so i dont use mingw.

                    1 Reply Last reply Reply Quote 0
                    • G
                      goetz last edited by

                      Better file a bug report on http://bugreports.qt.nokia.com

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post