通过setProperty 设置? property() 获取指定的属性名称的值
bool QObject::setProperty(const char *name, const QVariant &value)
QPushButton * btn = new QPushButton(nullptr);
btn->setProperty("style",true);
btn->setStyleSheet("QPushButton[style="true"]{ background-color:red;}");