How to delete "promotion"?
-
I have deleted promoted widget from "Object inspector" and want to cancel / delete unused promotion in "promoted Widgets" dialogue.
Do not see obvious way to do so.Any idea?
-
@AnneRanch said in How to delete "promotion"?:
@Chris-Kawa said in How to delete "promotion"?:
First right click on your promoted widget and select "Demote to WhateverYourBaseClassIs". Your widget is no longer promoted.
If, after that, you want to clean up the promotion list go to the promote dialog again and you can now select a promotion from the list and click the red minus button under the list. If it's disabled then it means you still have a widget that uses that promotion.
Well, I could use my old age "excuse ".
There is "greyed" minus sign at the bottom of the list of promotions.
Works fine AFTER promotion to be deleted is highlighted. Duh.
But remains "greyed out ".BUT, there is always a BUT...
after dummy QWidget is promoted , it is invisible at "tab".
Hopefully I do not have to adjust tab size, alter all I added "formWidget" layout. ( The "red crosses" still persist...)I'll will try combinations of layout / promoted widget.
BUT ( again) it does not look as I can promote in each tab independently dummy QWidget to SAME QDialog , perhaps QWidget cannot be promoted to QDialog in first place , will see.BUT ...
SOLVED
In QTabWidget the "any dummy QWidget" is actually "TABx" . QWidget.
Promoting anything in the "tab" itself does not perform , but compiles .Now "how to do it in code " is next , maybe.
-
First right click on your promoted widget and select "Demote to WhateverYourBaseClassIs". Your widget is no longer promoted.
If, after that, you want to clean up the promotion list go to the promote dialog again and you can now select a promotion from the list and click the red minus button under the list. If it's disabled then it means you still have a widget that uses that promotion.
-
@Chris-Kawa said in How to delete "promotion"?:
First right click on your promoted widget and select "Demote to WhateverYourBaseClassIs". Your widget is no longer promoted.
If, after that, you want to clean up the promotion list go to the promote dialog again and you can now select a promotion from the list and click the red minus button under the list. If it's disabled then it means you still have a widget that uses that promotion.
Well, I could use my old age "excuse ".
There is "greyed" minus sign at the bottom of the list of promotions.
Works fine AFTER promotion to be deleted is highlighted. Duh.
But remains "greyed out ".BUT, there is always a BUT...
after dummy QWidget is promoted , it is invisible at "tab".
Hopefully I do not have to adjust tab size, alter all I added "formWidget" layout. ( The "red crosses" still persist...)I'll will try combinations of layout / promoted widget.
BUT ( again) it does not look as I can promote in each tab independently dummy QWidget to SAME QDialog , perhaps QWidget cannot be promoted to QDialog in first place , will see. -
@AnneRanch said in How to delete "promotion"?:
@Chris-Kawa said in How to delete "promotion"?:
First right click on your promoted widget and select "Demote to WhateverYourBaseClassIs". Your widget is no longer promoted.
If, after that, you want to clean up the promotion list go to the promote dialog again and you can now select a promotion from the list and click the red minus button under the list. If it's disabled then it means you still have a widget that uses that promotion.
Well, I could use my old age "excuse ".
There is "greyed" minus sign at the bottom of the list of promotions.
Works fine AFTER promotion to be deleted is highlighted. Duh.
But remains "greyed out ".BUT, there is always a BUT...
after dummy QWidget is promoted , it is invisible at "tab".
Hopefully I do not have to adjust tab size, alter all I added "formWidget" layout. ( The "red crosses" still persist...)I'll will try combinations of layout / promoted widget.
BUT ( again) it does not look as I can promote in each tab independently dummy QWidget to SAME QDialog , perhaps QWidget cannot be promoted to QDialog in first place , will see.BUT ...
SOLVED
In QTabWidget the "any dummy QWidget" is actually "TABx" . QWidget.
Promoting anything in the "tab" itself does not perform , but compiles .Now "how to do it in code " is next , maybe.