[Python] How to remove icon on subwindow in PySide6?

Discussão em 'Python' iniciado por Stack, Janeiro 25, 2025.

  1. Stack

    Stack Membro Participativo

    I am programing a GUI by PySide6, and I am using mdiArea and subwindows.

    But there always have a QT icon on my subwindows, like this:

    [​IMG]

    And if I maxium my subwindow, the icon will show on my menubar:

    [​IMG]

    I had try:

    sub_window.setWindowIcon(QIcon())


    and

    subwindow.setWindowFlags(Qt.CustomizeWindowHint | Qt.WindowMinMaxButtonsHint)


    but not work, pealse teach me how to remove it , thanks.

    Continue reading...

Compartilhe esta Página