Ask about the QTextEdit problem
-
I need to add the vertical centering function of the text in the QTextEdit class, which needs to calculate the height of the text, and the height of the text does not include the margin of the document. How I get the height of the text.
-
-
I need to add the vertical centering function of the text in the QTextEdit class, which needs to calculate the height of the text, and the height of the text does not include the margin of the document. How I get the height of the text.
@TANG-JI-QIANG_CHINA_ "vertical centering function of the text" - what do you mean by this?
-
@jsulm said in Ask about the QTextEdit problem:
@TANG-JI-QIANG_CHINA_ "vertical centering function of the text" - what do you mean by this?
The text is displayed in the middle of the vertical direction of the document
-
@jsulm said in Ask about the QTextEdit problem:
@TANG-JI-QIANG_CHINA_ "vertical centering function of the text" - what do you mean by this?
The text is displayed in the middle of the vertical direction of the document
@TANG-JI-QIANG_CHINA_ Then you would need to put empty lines at the top of the document, I guess?
-
Setting the top margin of the document
-