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?
QtWS25 Last Chance

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 805 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.
  • Crawl.WC Offline
    Crawl.WC Offline
    Crawl.W
    wrote on last edited by Crawl.W
    #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
    • Crawl.WC Offline
      Crawl.WC Offline
      Crawl.W
      wrote on last edited by Crawl.W
      #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.

      aha_1980A 1 Reply Last reply
      0
      • Crawl.WC 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_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @crawl-w Sorry, what do you mean?

        Qt has to stay free or it will die.

        Crawl.WC 1 Reply Last reply
        0
        • aha_1980A aha_1980

          @crawl-w Sorry, what do you mean?

          Crawl.WC Offline
          Crawl.WC Offline
          Crawl.W
          wrote on 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.

          aha_1980A 1 Reply Last reply
          0
          • Crawl.WC 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_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 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.

            Crawl.WC 1 Reply Last reply
            0
            • aha_1980A aha_1980

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

              Regards

              Crawl.WC Offline
              Crawl.WC Offline
              Crawl.W
              wrote on last edited by
              #6

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

              aha_1980A 1 Reply Last reply
              0
              • Crawl.WC Crawl.W

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

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on 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.

                Crawl.WC 1 Reply Last reply
                0
                • aha_1980A aha_1980

                  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

                  Crawl.WC Offline
                  Crawl.WC Offline
                  Crawl.W
                  wrote on 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