QColor buttonBackgroundColor(QAbstractButton *button)
{
QColor bgColor(0,0,0);
if (button)
bgColor = button->palette().color(QPalette::Background);
return bgColor;
}
获取QPushButton背景颜色
猜你喜欢
转载自blog.csdn.net/sinat_31964903/article/details/90178263
今日推荐
周排行