Solved TextEdit FontWeight dont change anymore
-
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.
-
need to use...
textEdit->setFontPointSize(text.toInt());