Schrift in QTextEdit
-
Ich machte Fenster von QTextCreator in Qt Creator und zeigte größe 14. Größe ändert, wenn Ich Text von Dämpfer einstellen. Was brauche ich, um Größe nicht zu ändern?
-
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);
}@