Qt hide minimize, maximize and close buttons

后端 未结 6 1057
时光说笑
时光说笑 2020-12-10 03:58

Do you know how to hide minimize, maximize and close buttons of title bar in Qt. I especially need to hide it on QMainWindow.

6条回答
  •  无人及你
    2020-12-10 04:42

    flags: Qt.Dialog | Qt.WindowCancelButtonHint | Qt.WindowCloseButtonHint

    this also works for a window item

    flags: Qt.Window | Qt.WindowTitleHint

提交回复
热议问题