Re: [Interest] Don't get expected result from drawing StaticText with HTML

2019-05-14 Thread Martin Marmsoler
Hi Giuseppe, thank you for your reply. Im trying to find a Bug in Labplot, so I have to try to create a minimal project. I tried with QTextDocument and it seems to work fine. QTextDocument document; document.setHtml(staticText.text()); //painter->drawStaticText(QPoint(-w/2,-h/2), staticText);

Re: [Interest] Don't get expected result from drawing StaticText with HTML

2019-05-14 Thread Giuseppe D'Angelo via Interest
Hi, On 14/05/2019 20:07, Martin Marmsoler wrote: I store this String in a QStaticText (staticText)and draw this text with painter->drawStaticText(QPoint(-w/2,-h/2),staticText); But the result is that the hole text is red and not only the part "arke" Which Qt version are you using, under wh

[Interest] Don't get expected result from drawing StaticText with HTML

2019-05-14 Thread Martin Marmsoler
Hello, I'm trying to draw a static text from html code received from a QTextEdit. The first time I set the text normaly without html: teLabel->setText("Textmarke"); then I mark in the TextEdit field the part "arke" of the above text and change the color with teLabel->setTextColor(color); >From