Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can form widgets be (easily) renumbered in QTDesigner ?

Can form widgets be (easily) renumbered in QTDesigner ?

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 595 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    After the form is initially designed , the widgets are added / deleted etc in the process, resulting in few numbering inconsistencies.

    It would be nice if there was an easy way to at least renumber the widgets concurrently.

    330594b5-8e56-4d6d-8e1e-f6e14b0887d8-image.png

    JonBJ 1 Reply Last reply
    0
    • A Anonymous_Banned275

      After the form is initially designed , the widgets are added / deleted etc in the process, resulting in few numbering inconsistencies.

      It would be nice if there was an easy way to at least renumber the widgets concurrently.

      330594b5-8e56-4d6d-8e1e-f6e14b0887d8-image.png

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @AnneRanch
      Designer does not offer any widget-name renumbering. You would have to do it yourself there, or edit the .ui file as a text file and do so there.

      I note that some of your container widgets have the "red no-entry" sign on them, indicating they have not been assigned any layout. They may not appear as desired/intended unless you assign them a layout.

      1 Reply Last reply
      4
      • C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #3

        Give the widgets meaningful names so that the code referencing them becomes far more easily maintained and you have no need to "renumber" the widgets.

        A 1 Reply Last reply
        5
        • C ChrisW67

          Give the widgets meaningful names so that the code referencing them becomes far more easily maintained and you have no need to "renumber" the widgets.

          A Offline
          A Offline
          Anonymous_Banned275
          wrote on last edited by
          #4

          @ChrisW67 said in Can form widgets be (easily) renumbered in QTDesigner ?:

          Give the widgets meaningful names so that the code referencing them becomes far more easily maintained and you have no need to "renumber" the widgets.

          Not really that helpful - it would defeat "cut and paste " concept.
          As in this case each "tab" has common components...

          VRoninV 1 Reply Last reply
          0
          • A Anonymous_Banned275

            @ChrisW67 said in Can form widgets be (easily) renumbered in QTDesigner ?:

            Give the widgets meaningful names so that the code referencing them becomes far more easily maintained and you have no need to "renumber" the widgets.

            Not really that helpful - it would defeat "cut and paste " concept.
            As in this case each "tab" has common components...

            VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #5

            @AnneRanch said in Can form widgets be (easily) renumbered in QTDesigner ?:

            it would defeat "cut and paste " concept.
            As in this case each "tab" has common components...

            May I suggest nesting could be the preferred way here?

            Create the internal components as a standalone widget with designer, then you can use the promote feature to tell designer to treat a single widget in each tab as it was your complex widget

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            A 1 Reply Last reply
            2
            • VRoninV VRonin

              @AnneRanch said in Can form widgets be (easily) renumbered in QTDesigner ?:

              it would defeat "cut and paste " concept.
              As in this case each "tab" has common components...

              May I suggest nesting could be the preferred way here?

              Create the internal components as a standalone widget with designer, then you can use the promote feature to tell designer to treat a single widget in each tab as it was your complex widget

              A Offline
              A Offline
              Anonymous_Banned275
              wrote on last edited by
              #6

              @VRonin said in Can form widgets be (easily) renumbered in QTDesigner ?:

              @AnneRanch said in Can form widgets be (easily) renumbered in QTDesigner ?:

              it would defeat "cut and paste " concept.
              As in this case each "tab" has common components...

              May I suggest nesting could be the preferred way here?

              Create the internal components as a standalone widget with designer, then you can use the promote feature to tell designer to treat a single widget in each tab as it was your complex widget

              Great idea, I'll give it a go.
              BUT it assumes that I make sure the "template" is finished.
              Unless the "template" can be later modified and changes passed onto the main form.

              VRoninV 1 Reply Last reply
              0
              • A Anonymous_Banned275

                @VRonin said in Can form widgets be (easily) renumbered in QTDesigner ?:

                @AnneRanch said in Can form widgets be (easily) renumbered in QTDesigner ?:

                it would defeat "cut and paste " concept.
                As in this case each "tab" has common components...

                May I suggest nesting could be the preferred way here?

                Create the internal components as a standalone widget with designer, then you can use the promote feature to tell designer to treat a single widget in each tab as it was your complex widget

                Great idea, I'll give it a go.
                BUT it assumes that I make sure the "template" is finished.
                Unless the "template" can be later modified and changes passed onto the main form.

                VRoninV Offline
                VRoninV Offline
                VRonin
                wrote on last edited by
                #7

                @AnneRanch changes in the template will automatically fall through to the widgets using it

                "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                ~Napoleon Bonaparte

                On a crusade to banish setIndexWidget() from the holy land of Qt

                1 Reply Last reply
                1

                • Login

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