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. What is the hint order for member variable input in qt creator?
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 2 Posters 819 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.
  • C Offline
    C Offline
    Crawl.W
    wrote on 28 Aug 2019, 08:23 last edited by Crawl.W 8 Dec 2020, 01:37
    #1

    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
    0
    • C Offline
      C Offline
      Crawl.W
      wrote on 28 Aug 2019, 08:32 last edited by Crawl.W 8 Dec 2020, 01:40
      #2

      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.

      A 1 Reply Last reply 28 Aug 2019, 09:09
      0
      • C Crawl.W
        28 Aug 2019, 08:32

        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.

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 28 Aug 2019, 09:09 last edited by
        #3

        @crawl-w Sorry, what do you mean?

        Qt has to stay free or it will die.

        C 1 Reply Last reply 28 Aug 2019, 09:24
        0
        • A aha_1980
          28 Aug 2019, 09:09

          @crawl-w Sorry, what do you mean?

          C Offline
          C Offline
          Crawl.W
          wrote on 28 Aug 2019, 09:24 last edited by Crawl.W
          #4

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

          A 1 Reply Last reply 28 Aug 2019, 09:26
          0
          • C Crawl.W
            28 Aug 2019, 09:24

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

            A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 28 Aug 2019, 09:26 last edited by
            #5

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

            Regards

            Qt has to stay free or it will die.

            C 1 Reply Last reply 12 Aug 2020, 01:44
            0
            • A aha_1980
              28 Aug 2019, 09:26

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

              Regards

              C Offline
              C Offline
              Crawl.W
              wrote on 12 Aug 2020, 01:44 last edited by
              #6

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

              A 1 Reply Last reply 12 Aug 2020, 13:58
              0
              • C Crawl.W
                12 Aug 2020, 01:44

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

                A Offline
                A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on 12 Aug 2020, 13:58 last edited by
                #7

                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.

                C 1 Reply Last reply 13 Aug 2020, 06:34
                0
                • A aha_1980
                  12 Aug 2020, 13:58

                  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

                  C Offline
                  C Offline
                  Crawl.W
                  wrote on 13 Aug 2020, 06:34 last edited by
                  #8

                  @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
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved