Can form widgets be (easily) renumbered in QTDesigner ?
-
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.
-
@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.
-
@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... -
@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
-
@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. -
@AnneRanch changes in the template will automatically fall through to the widgets using it