But it is not a way of vertical orientation of text.
I am facing the same problem in the below thread specially for white space character.
Space problem in QTextEdit
But it is not a way of vertical orientation of text.
I am facing the same problem in the below thread specially for white space character.
Space problem in QTextEdit
Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
If you want to use the text layout object, then at least set the line width before creating lines. You can use QFontMetrics to check how wide the line should be to incorporate one character of the current font.
How a way I set the line before creating the text layout object.If you want to use the text layout object, then at least set the line width before creating lines
Please suggest me a function for that or give me a example.
Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
Please take a look at the example in QTextLayout docs.
Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
Set it after you create the line but before you create another... The point is to force a single character on each line. Or consider not using the text layout at all and simply drawing each character yourself using QPainter::drawText.
Bookmarks