Topic: Text centering in drawing text editor

Hi

Now there may be an easy answer to this question (I hope) but I cannot get text to obey centering in the text editor for the normal drawing workspace.

I have tried both CSS and HTML, which the editor observes, however does not translate to the text field on the drawing.

Is there a way to center multiple lines of text in a text box? The next option might be to create an HTML table but that's a lot of effort to get centered text.

See attached screenshot for example.

Cheers

Post's attachments

QElectroCenter.PNG, 12.33 kb, 497 x 396
QElectroCenter.PNG 12.33 kb, 5 downloads since 2024-10-18 

Re: Text centering in drawing text editor

Sorry - forgot to mention in case this info is also important.

QElectroTech V 0.90+c7891bc4cb0a58100c957a06d79751d3
Compilation : GCC 11.3.0

Re: Text centering in drawing text editor

The HTML support is limited by the Qt toolkit.  You might want to check https://doc.qt.io/qt-5/richtext-html-subset.html for the tags and styling it supports.

Re: Text centering in drawing text editor

Why not use space to center text, no need to use avanced text editor and HTML?

https://download.qelectrotech.org/qet/forum_img_2/text_centering.png

Post's attachments

Attachment icon text_centering.qet 5.06 kb, 11 downloads since 2024-10-18 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."