Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved What is the hint order for member variable input in qt creator?

    Tools
    2
    8
    393
    Loading More Posts
    • 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.
    • Crawl.W
      Crawl.W last edited by Crawl.W

      The hint order is strange, I don’t know what sort of rules it uses, please tell me.Here is a example, the first picture is input hint and the latter is the order of member variable defined.
      1eb37690-ecc3-4bd8-a7e5-f0461a8ade4e-image.png 25dc9844-94ee-4fc3-ae94-e3af449af939-image.png
      We can see that they are in different order from each other.Why is the order of input hints different from the order of definitions, are there any special considerations?

      1 Reply Last reply Reply Quote 0
      • Crawl.W
        Crawl.W last edited by Crawl.W

        I have gotten a certain law.
        Ordering rule may be:
        Firstly, ordering by the number of characters.
        Then, by the character sequence.
        Anyway, not a convenient way.

        aha_1980 1 Reply Last reply Reply Quote 0
        • aha_1980
          aha_1980 Lifetime Qt Champion @Crawl.W last edited by

          @crawl-w Sorry, what do you mean?

          Qt has to stay free or it will die.

          Crawl.W 1 Reply Last reply Reply Quote 0
          • Crawl.W
            Crawl.W @aha_1980 last edited by Crawl.W

            @aha_1980 I mean input hint not orginal order as I defined, such as member of struct, which is a little inconvenient.

            aha_1980 1 Reply Last reply Reply Quote 0
            • aha_1980
              aha_1980 Lifetime Qt Champion @Crawl.W last edited by

              @crawl-w Can you please provide an example of what you mean?

              Regards

              Qt has to stay free or it will die.

              Crawl.W 1 Reply Last reply Reply Quote 0
              • Crawl.W
                Crawl.W @aha_1980 last edited by

                @aha_1980 I hadn’t received a message reminder before,I added some description to my question just now.

                aha_1980 1 Reply Last reply Reply Quote 0
                • aha_1980
                  aha_1980 Lifetime Qt Champion @Crawl.W last edited by

                  Hi @Crawl-W,

                  I just did a test with Creator 4.13-beta2 with Clang Code Model active, and here the members are sorted alphabetically in the completion window.

                  So I think you should just update Creator. The final 4.13 release is expected for end of August.

                  Regards

                  Qt has to stay free or it will die.

                  Crawl.W 1 Reply Last reply Reply Quote 0
                  • Crawl.W
                    Crawl.W @aha_1980 last edited by

                    @aha_1980 I found the pattern as I said in my first answer.I mean maybe it would be better in the defined order, or I can decide what sort of strategy to use.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post