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. Qt Creator autocomplete not updating for new UI widgets until (re)compile
QtWS25 Last Chance

Qt Creator autocomplete not updating for new UI widgets until (re)compile

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qtcreatorautocompletewidgetsslots
6 Posts 4 Posters 3.4k 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.
  • K Offline
    K Offline
    kylenoteboom
    wrote on last edited by A Former User
    #1

    Qt Creator 4.2.0 Based on Qt 5.7.1 (GCC 6.2.1 20160830, 64 bit)
    Running on Arch Linux.

    Having made a new "Qt Widgets Application", with the default settings, I added some widgets to the 'mainwindow.ui' file.
    I saved it, then added a slot for a button. In the function for said button I tried to get the value of some line edit, however, could not find it in the autocomplete in

    ui->
    

    Nor in

    this->ui->
    

    Compiling and running my application once made them available in autocomplete though.

    Is this the expected intended behaviour for autocomplete with regards to new UI widgets?

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      That's not intended nor expected.

      Does it also happen if you quit and re-open Qt Creator with your project ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        That's not intended nor expected.

        Does it also happen if you quit and re-open Qt Creator with your project ?

        K Offline
        K Offline
        kylenoteboom
        wrote on last edited by
        #3

        @SGaist It also happens when I restart Qt Creator. I've also tried a reboot, and it did not help.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          One thing you can try in between is to disable the clang code model. Go to "About plugins" and then you should find a check box about that. You'll return to the old code model.

          Before doing that, start Qt Creator on the command line to see if there's any error message printed that might be related to that.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • A Offline
            A Offline
            adke
            wrote on last edited by
            #5

            This is actually correct and behaves very strangely, sometimes it works and sometimes not.
            Problem is big if one is beginner like me.
            I don't know why the problem still persists after 3 years.
            Currently i am using Qt Creator 4.9.2 with Qt 5.12.4 with Mingw.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jorialand
              wrote on last edited by
              #6

              I was having the same problem, but for me has worked to disable the Clang code model and restarting Qt.

              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