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

"Auto" variable doesn't show correct tooltip

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • Qt Creator 4.6.0-beta1
    • Qt Creator 3.0.0, Qt Creator 3.4.0, Qt Creator 3.5.1, Qt Creator 3.6.0
    • C/C++/Obj-C++ Support
    • None

      "auto" variable doesn't show correct tooltip in text editor.

      Example code:

      #include <QString>
      int main()
      {
          QString str1;
          auto str2 = str1;
          str2.append("a");
          return 1;
      }
      

      If you move your mouse on str1 - you will see correct tooltip that this variable is QString, but if you move mouse on str2 then you won't see this and only see tooltip message with the name of variable("str2"), like it some template variable.

        1. problem tooltip str2(auto).png
          6 kB
          Konstantin
        2. tooltip str1.png
          8 kB
          Konstantin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            shtirliz72 Konstantin
            Votes:
            31 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes