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. Why has autocompletion in Qt Creator gotten worse?

Why has autocompletion in Qt Creator gotten worse?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 5 Posters 759 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.
  • C Offline
    C Offline
    CodeCat
    wrote on last edited by
    #1

    I am just getting back into Qt programming (using Qt 6.3 & Qt Creator 7.0.2 on Windows 10 Pro) after have been away from it for a few years. I am surprised that the autocompletion in Qt Creator is not as good as I remember it to be (I think I was previously using Qt 5.1, but I'm not sure). I noticed that:

    • Previously when I typed a period, Qt Creator always knew when it needed to be replaced with "->". Now it often gets it wrong.

    • Previously when adding a new method to a class, Qt Creator would use the declaration I had just added to the header file to automatically fill in the arguments. Now it never does it.

    • Previously when adding a connect() call, Qt Creator would offer autocompletion for the SIGNAL() and SLOT() calls. Now it never does.

    I would think that when updating Qt Creator one of the requirements would be to make sure to not make it less user friendly. Is there some way I can configure Qt Creator 7 to get the autocompletion to work as well as it used to?

    J.HilkJ JonBJ 2 Replies Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi @CodeCat, these are valid concerns. Can you please add them to https://bugreports.qt.io/browse/QTCREATORBUG-26959, and check if the issues mentioned in that bug report affects you too?

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • C CodeCat

        I am just getting back into Qt programming (using Qt 6.3 & Qt Creator 7.0.2 on Windows 10 Pro) after have been away from it for a few years. I am surprised that the autocompletion in Qt Creator is not as good as I remember it to be (I think I was previously using Qt 5.1, but I'm not sure). I noticed that:

        • Previously when I typed a period, Qt Creator always knew when it needed to be replaced with "->". Now it often gets it wrong.

        • Previously when adding a new method to a class, Qt Creator would use the declaration I had just added to the header file to automatically fill in the arguments. Now it never does it.

        • Previously when adding a connect() call, Qt Creator would offer autocompletion for the SIGNAL() and SLOT() calls. Now it never does.

        I would think that when updating Qt Creator one of the requirements would be to make sure to not make it less user friendly. Is there some way I can configure Qt Creator 7 to get the autocompletion to work as well as it used to?

        J.HilkJ Online
        J.HilkJ Online
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @CodeCat

        sounds to me like exclusive clang code model issues try disabling it:

        0da63d86-eb3b-40f6-95f0-5753686f1da3-image.png

        but you'll loose c++14/17 and newer feature detections inside your files and those my falsely be detected as errors.

        alternatively use QtCreator 5.0.3 (the one I use) fore some unexplicit reason, this version runs much, much better with the clang code model than any other, later one.

        https://download.qt.io/official_releases/qtcreator/5.0/5.0.3/


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply
        0
        • C CodeCat

          I am just getting back into Qt programming (using Qt 6.3 & Qt Creator 7.0.2 on Windows 10 Pro) after have been away from it for a few years. I am surprised that the autocompletion in Qt Creator is not as good as I remember it to be (I think I was previously using Qt 5.1, but I'm not sure). I noticed that:

          • Previously when I typed a period, Qt Creator always knew when it needed to be replaced with "->". Now it often gets it wrong.

          • Previously when adding a new method to a class, Qt Creator would use the declaration I had just added to the header file to automatically fill in the arguments. Now it never does it.

          • Previously when adding a connect() call, Qt Creator would offer autocompletion for the SIGNAL() and SLOT() calls. Now it never does.

          I would think that when updating Qt Creator one of the requirements would be to make sure to not make it less user friendly. Is there some way I can configure Qt Creator 7 to get the autocompletion to work as well as it used to?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @CodeCat said in Why has autocompletion in Qt Creator gotten worse?:

          Previously when adding a connect() call, Qt Creator would offer autocompletion for the SIGNAL() and SLOT() calls. Now it never does.

          Your other concerns are valid. As @J-Hilk says, I hear nothing but problems with Creator 7....

          But the SIGNAL/SLOT() one is not, insofar as you would be much better off not using such macros. For your own good, change over to New Signal Slot Syntax :)

          1 Reply Last reply
          1
          • C Offline
            C Offline
            CodeCat
            wrote on last edited by
            #5

            OK, I'll switch to an older version of Qt Creator.

            Thanks for the tip on the new signal/slot syntax.

            1 Reply Last reply
            1
            • V Offline
              V Offline
              Violet Giraffe
              wrote on last edited by Violet Giraffe
              #6

              I had to work on an old laptop (2-core Sandy Bridge CPU) for the past 3 months instead of my Ryzen 7 desktop PC, and I've noticed that code indexing and auto-completion is incredibly slow in Creator 7, and much much better in Creator 5 on the same laptop. With no visible differences in functionality.

              1 Reply Last reply
              2

              • Login

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