Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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?

    7517d5e0-3ed4-4f3b-996e-0ee744ac07e4-image.png



  • @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.

    fd193e8a-d65c-4246-af6f-5d5629fbc7c9-image.png

    BUT ...

    SOLVED

    In QTabWidget the "any dummy QWidget" is actually "TABx" . QWidget.
    Promoting anything in the "tab" itself does not perform , but compiles .

    cd49c0f2-de86-490a-9484-51e1ad8fcf54-image.png

    Now "how to do it in code " is next , maybe.


  • Moderators

    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.

    fd193e8a-d65c-4246-af6f-5d5629fbc7c9-image.png



  • @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.

    fd193e8a-d65c-4246-af6f-5d5629fbc7c9-image.png

    BUT ...

    SOLVED

    In QTabWidget the "any dummy QWidget" is actually "TABx" . QWidget.
    Promoting anything in the "tab" itself does not perform , but compiles .

    cd49c0f2-de86-490a-9484-51e1ad8fcf54-image.png

    Now "how to do it in code " is next , maybe.


Log in to reply