1

QPushButton の押された背景色を取得するにはどうすればよいですか?

if (isDown())
    _BGColor = <pressed background color>; // how to get this???
else
    _BGColor = palette().color(QPalette::Background); // this is to get the idle backcolor

前もって感謝します!!!

4

1 に答える 1