Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. TextEdit FontWeight dont change anymore
Forum Updated to NodeBB v4.3 + New Features

TextEdit FontWeight dont change anymore

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 451 Views
  • 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.
  • F Offline
    F Offline
    Fuel
    wrote on last edited by
    #1

    I dont know what happens, but after my work at different things my QTextEdit dont set FontWeight anymore or doesnt show it. Normally i set the FontWeight with this.

    connect(textsize, SIGNAL(currentTextChanged(QString)), this, SLOT(textSizeText(QString)));
    void Diarytextwidget::textSizeText(QString text)
    {
        textEdit->setFontWeight(text.toInt());
    }
    

    this Code works a few Days ago. The confusing Thing is, that in the QTextEdit HTML Code the Size changes. If i retrieve the charFormat it shows me that the FontWeight is set, but the FontSize in QTextEdit doesnt change visually.

    So it seems to be working, but QTextEdit just dont show the new TextSize, but its set. Im confused. Dont know where to search the Error.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Fuel
      wrote on last edited by
      #2

      need to use...

      textEdit->setFontPointSize(text.toInt());
      
      1 Reply Last reply
      1

      • Login

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