Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. German
  4. Schrift in QTextEdit
Forum Updated to NodeBB v4.3 + New Features

Schrift in QTextEdit

Scheduled Pinned Locked Moved German
2 Posts 1 Posters 1.5k 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.
  • D Offline
    D Offline
    Der Kode
    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
    • D Offline
      D Offline
      Der Kode
      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 Extensions
      • Unsolved