paragraph in TextEdit
-
Good day! There was a problem in the program using Qt Quick 2 show large chunks of text with specific formatting.
I tried to use for this and Text and TextEdit, but in the example below, there is no indent of the start paragraph. What properties need to be added to make <p> work?
TextEdit{
id:l1TextCaption
width: parent.width
height: parent.height
anchors.fill: parent
text: "<p><font color = 'red'> input text </font> another text"
font.pixelSize: 29
wrapMode:TextEdit.Wrap
verticalAlignment: Text.AlignJustify
textFormat: TextEdit.RichText
readOnly: true
} -
@ShiroExorcist can u explain a bit more what exactly u want?
-
@JasmineSethi I want to display the text as follows:
(/TAB/) "A simple large text containing any information about the form that will be read."
And it turns out:
"A simple large text containing any information about the form that will be read."
I can not indent at the beginning of a paragraph
Styling markup <p> dose not work. -
hi
@ShiroExorcist
the html pre tag makes spaces visiblestext: '<pre><p> spaced text</p></pre> long text .... !'
-
@ShiroExorcist
If you intend, or have, text starting with spaces you can use @LeLev 's<pre>
tag.If you mean you want to style a first-line-only indent as a style on the
<p>
there istext-indent: 30pt;
, ormargin-left: 40px;
if you mean all lines. -
hi,
@ShiroExorcist said in paragraph in TextEdit:textEdit dose't have property indent
JonB said "style on the <p>"
'<p text-indent="30pt">spaced text</p> long text .... !' or '<p margin-left="40px">spaced text</p> long text .... !'
but this dont work for me, there is no margin