QTextCharFormat fmt;
fmt=ui->txtEdit->currentCharFormat();
fmt.setFontUnderline(checked);
ui->txtEdit->mergeCurrentCharFormat(fmt);
QT设置选中的文字加下划线
最新推荐文章于 2024-01-03 10:40:56 发布
QTextCharFormat fmt;
fmt=ui->txtEdit->currentCharFormat();
fmt.setFontUnderline(checked);
ui->txtEdit->mergeCurrentCharFormat(fmt);