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. Auto-completion is disable
QtWS25 Last Chance

Auto-completion is disable

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 4 Posters 2.3k 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.
  • F Offline
    F Offline
    freecamellia
    wrote on last edited by
    #1

    Hi,

    This is my situation :

    In my project I added an Qt designer graphic interface class which generates form.h form.cpp and form.ui files.
    I added some widgets (buttons, labels..) visually in my interface (form.ui).
    I edited visually the "objectName" for each widget.
    In my form.cpp I want use widget variable by calling them by her objectName .

    My question is : when I start writing the objectName of an widget, why the auto-completion is disabled ?

    thank you in advance!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      I guess you are talking about auto-completion in Qt Creator?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        Moved to tools forum as it seems to be related to creator. Feel free to move again if I proof to be wrong :-)

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

          The form.ui file is compiled into an ui_form.h file that must be included in your cpp. The autocompletion needs that .h file to work, so you should build your project after saving the changes to the .ui file in order to regenerate ui_form.h. After that autocompletion usually works again.

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

          1 Reply Last reply
          0
          • F Offline
            F Offline
            freecamellia
            wrote on last edited by
            #5

            Although ui_form.h is included automatically on the header of form.cpp it not works !

            But I added "ui->" before each variable and it works.

            thanks a lot !

            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