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
} -
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?
-
@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. -
@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. -
@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.@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. -
@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.@JonB textEdit dose't have property indent. Can you show simple example?
-
@JonB textEdit dose't have property indent. Can you show simple example?
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
-
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
@LeLev , @ShiroExorcist
Not that I've tried it, but that's because what you've tried is wrong! These are styles, not HTML attributes! So try:<p style="text-indent: 30pt"> <p style="margin-left: 40px">
?
-
@LeLev , @ShiroExorcist
Not that I've tried it, but that's because what you've tried is wrong! These are styles, not HTML attributes! So try:<p style="text-indent: 30pt"> <p style="margin-left: 40px">
?