Qt Q_OBJECT qss 使用Q_OBJECT之后,再设置StyleSheet无效,需要设置setAttibute(Qt::WA_StyledBackground); 需要置顶的话,windowFlag设置Qt::WindowStaysOnTopHint