Qt 给文本添加删除线
1.ui界面:按照以下步骤 ,就可以实现文本的删除线了;
text-decoration: line-through;
2.在代码:
我这边是使用了none 就是取消删除线
ui->checkBox_out_1->setStyleSheet("text-decoration: none;");
none 没有线
underline 下划线
overline 上划线
line-through 删除线
时间:2021-10-22 00:32:01
text-decoration: line-through;
我这边是使用了none 就是取消删除线
ui->checkBox_out_1->setStyleSheet("text-decoration: none;");
none 没有线
underline 下划线
overline 上划线
line-through 删除线