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. can qt designer action editor sort by action name?
Forum Updated to NodeBB v4.3 + New Features

can qt designer action editor sort by action name?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 4 Posters 1.1k Views 2 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.
  • L Offline
    L Offline
    LiaoXuewei
    wrote on last edited by
    #1

    Hi all,
    can qt designer action editor sort by action name? When there are too many actions in form, it's troublesome to operate or find.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      No such option exist. Please note these will turn into vars in code. May not be practical to sort them.but you shud see them according tomenu in obect window.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        But you can search for one
        alt text

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          While there's no built in option to do that the actions are displayed in the order they appear in the .ui file, which is just a simple xml format.
          You can sort the file using something like xmllint's --c14n option and hook that up in the Qt Creator as external tool (Tools ->External->Configure). After that you can even give it a shortcut (Tools->Options->Environment->Keyboard) so you have a quick access to it.

          L 1 Reply Last reply
          3
          • L Offline
            L Offline
            LiaoXuewei
            wrote on last edited by
            #5

            ok, thanks to all!

            1 Reply Last reply
            0
            • Chris KawaC Chris Kawa

              While there's no built in option to do that the actions are displayed in the order they appear in the .ui file, which is just a simple xml format.
              You can sort the file using something like xmllint's --c14n option and hook that up in the Qt Creator as external tool (Tools ->External->Configure). After that you can even give it a shortcut (Tools->Options->Environment->Keyboard) so you have a quick access to it.

              L Offline
              L Offline
              LiaoXuewei
              wrote on last edited by
              #6

              @Chris-Kawa I have try your solution, but couldn't solve the problem. -> xmllint's --c14n

              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