Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Intellisense not shows the objects added via Designer.

Intellisense not shows the objects added via Designer.

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 2.3k Views 1 Watching
  • 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.
  • H Offline
    H Offline
    Hareen Laks
    wrote on last edited by
    #1

    Hi,

    I'm using Qt Creator 4.7.4 and I added QListWidget to my application via Designer. ObjectName of the added QListWidget appear as listWidget then I renamed it to myListWidget.

    Then try to add items using the code. I declare a pointer to UI as ui and try to access myListWidget. But Intellisense not displaying the myListWidget after type ui-> instead it is showing listWidget.

    When I use it I got following error.
    'class Ui::FormWidget' has no member named 'listWidget'

    If I manually type myListWidget it is working.

    So why Intellisense working like that?

    Thanks in advance.

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Hi,
      Intellisense uses the last known items after a succesfull compilation of your code, or when the code is changed when you safe that file. So, if you change the names in Designer, you need to run qmake and the MOC (a clean and rebuild should do the trick).

      Greetz, Jeroen

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hareen Laks
        wrote on last edited by
        #3

        Thanks Jeroentje.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hareen Laks
          wrote on last edited by
          #4

          @ Jeroentje.,

          I tried to compile and run. Even it compiles and run successfully 'Intellisense' not working correctly.

          Intellisense working correctly after restart of the the Qt Creator. :(

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

            There is no Qt Creator 4.7.4, that's a Qt version number. If your Qt Creator is of the same vintage, say version 2.1 or 2.2, then it likely has a good number of code completion issues that have been addressed in more recent releases (there have been 7 or 8 releases since 2.2). Use a more recent Qt Creator.

            BTW: "IntelliSense" is a Microsoft trademark for what the Visual Studio does, and nothing to do with Qt Creator.

            1 Reply Last reply
            0
            • H Offline
              H Offline
              Hareen Laks
              wrote on last edited by
              #6

              @ChrisW67,

              Ohh. yes that's true. I'm using Qt Creator 2.4.1 based on Qt 4.7.4.

              Can I use "Qt Creator 3 ":https://blog.qt.digia.com/blog/2013/12/12/qt-creator-3-0-released/ with Qt 4.7.4?

              [quote author="ChrisW67" date="1389673669"]
              BTW: "IntelliSense" is a Microsoft trademark for what the Visual Studio does, and nothing to do with Qt Creator.[/quote]
              I asked my superior and he says it should be 'code completion'.

              Thank you.

              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