討論串[問題] Qt setPalette & setAutoFillBackground
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
就是, 當你想使用 setPalette(), 可是不想要 widget 的背景被自動填滿的時候.... 因為除了設定 widget 背景外, setPalette() 還有其他的用途. a) widget 被要求 repaint. b) 畫出 widget 背景. c) 畫出 widget 前景.
(還有276個字)
內容預覽:
如果要設定某 widget 的背景,得先 setPalette(),再 setAutoFillBackground(true),我覺得奇怪的是既然每次 setPalette() 都要再 setAutoFillBackground(true),. 何不將此後者的動作包進 setPalette() 就好
(還有17個字)
首頁
上一頁
1
下一頁
尾頁