Disable QDialogs default close button (upper left “cross button”)?

前端 未结 4 1740
臣服心动
臣服心动 2020-12-10 03:51

Is it possible to disable/delete the QDialogs default close button at the upper left of the dialog?

4条回答
  •  误落风尘
    2020-12-10 04:50

    Use this function for your dialog

    dlgLobLobLob->setWindowFlags(Qt::Dialog | Qt::Desktop)
    

提交回复
热议问题