Qt - Disabling QDialog's “?” button

前端 未结 4 693
旧巷少年郎
旧巷少年郎 2021-02-07 01:15

I create an instance of QDialog and on the left of \'x\' (close) button i have also \'?\' button. How I can disable that \'?\' ?

4条回答
  •  醉梦人生
    2021-02-07 01:59

    For Qt 5.10 and higher you can use application wide flag Qt::AA_DisableWindowContextHelpButton

     app.setAttribute(Qt::AA_DisableWindowContextHelpButton);
    

提交回复
热议问题