// 例:获取 label 控件中的字体颜色
QLabel *label = new QLabel("Hello", nullptr);
QPalette pl = label->palette();
QColor textColor = pl.color(QPalette::Text);
// 例:获取 label 控件中的字体颜色
QLabel *label = new QLabel("Hello", nullptr);
QPalette pl = label->palette();
QColor textColor = pl.color(QPalette::Text);