Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. International
  3. German
  4. Schrift in QTextEdit
Qt 6.12 LTS is out! See what's new in the release blog

Schrift in QTextEdit

Scheduled Pinned Locked Moved German
2 Posts 1 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      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);
      

      }@

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved