Qt hide minimize, maximize and close buttons

后端 未结 6 1058
时光说笑
时光说笑 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:41

    If you are using Qt qml then, to remove minimize, maximize and close button, set the frameless window flag in the window function in your main.qml file, like below:

    flags: Qt.FramelessWindowHint
    

提交回复
热议问题