Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator 2.1 autocomplete
QtWS25 Last Chance

QtCreator 2.1 autocomplete

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 4 Posters 3.9k Views
  • 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 Offline
    D Offline
    daniil
    wrote on last edited by
    #1

    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
    0
    • M Offline
      M Offline
      MarkoSiroki
      wrote on last edited by
      #2

      Try "using namespace std;" before main.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        daniil
        wrote on last edited by
        #3

        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
        0
        • V Offline
          V Offline
          vinb
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • D Offline
            D Offline
            daniil
            wrote on last edited by
            #5

            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
            0
            • V Offline
              V Offline
              vinb
              wrote on last edited by
              #6

              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
              0
              • D Offline
                D Offline
                daniil
                wrote on last edited by
                #7

                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
                0
                • V Offline
                  V Offline
                  vinb
                  wrote on last edited by
                  #8

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

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #9

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

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

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved