PyQt(Python+Qt)學習隨筆:Designer中的QDialogButtonBox的ButtonRole詳解

一、引言 在Designer中創建的QDialogButtonBox對應的Button,都有指定的ButtonRole,而我們創建自定義的Button加入到QDialogButtonBox中去時,也需要設定該按鈕的ButtonRole。 二、ButtonRole之我見 ButtonRole的作用在Qt文檔中沒有明確說明,老猿分析,ButtonRole主要有如下三個作用: 1、同一種ButtonRo
相關文章
相關標籤/搜索