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. Objects of typedef'ed types cannot be autocompleted?
Qt 6.11 is out! See what's new in the release blog

Objects of typedef'ed types cannot be autocompleted?

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 3 Posters 2.4k 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.
  • D Offline
    D Offline
    daviddoria
    wrote on last edited by
    #1

    Is there a reason that objects of typedef'ed types cannot be autocompleted? For example:

    @#include <iostream>

    struct MyClass
    {
    void TestFunction(){}
    };

    int main (int , char *[])
    {
    MyClass myClass;
    myClass.TestFunction();

    MyClass* myClass2 = new MyClass;
    myClass2->TestFunction();

    typedef MyClass MyClassType;
    MyClassType myClass3;
    // myClass3. // no autocomplete list produced

    return 0;
    }
    @

    Here "myClass." produces the auto complete list, "myClass2->" produces the auto complete list, but "myClass3." does NOT produce the autocomplete list.

    Can anyone explain that?

    Thanks,

    David

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      That is just how it is :D QtCreator's engine is getting better all the time, though, so I would expect it to work some time in the future (I'm not sure, actually, but it might have worked in the past).

      You could compile QtC from the experimental clang branch, maybe it works there.

      (Z(:^

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

        I can reproduce that with QTC 2.6.0. Could you file a bug report, please?

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

        1 Reply Last reply
        0
        • D Offline
          D Offline
          daviddoria
          wrote on last edited by
          #4

          Done: https://bugreports.qt-project.org/browse/QTCREATORBUG-8248

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            And an immediate +1 from me :D

            (Z(:^

            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