Schrift in QTextEdit
German
2
Posts
1
Posters
1.5k
Views
1
Watching
-
Machte es - redigierte signal currentCharFormatChanged:
@QTextCharFormat fmt = ui->text->currentCharFormat();
...void Dialog::on_text_currentCharFormatChanged(const QTextCharFormat &format)
{
ui->text->selectAll();
ui->text->setCurrentCharFormat(fmt);QTextCursor textCursor = ui->text->textCursor(); textCursor.clearSelection(); ui->text->setTextCursor(textCursor);}@