在setstylesheet里面加上QTooltip{}即可
如
ui->checkBox->setStyleSheet("QToolTip{"
"background-color: rgb(255,255,255);"
"font: 12px 微软雅黑;"
"color: rgb(87,87,87);"
"border-radius: 0px;"
"border:0px solid rgb(0,0,0);"
"outline:none; "
"}"
"QCheckBox{"
"background-color: rgb(255,255,255);"
"font: 12px 微软雅黑;"
"color: rgb(0, 0, 0);"
"border-radius: 0px;"
"border:0px solid rgb(0,0,0);"