What exactly happens ? Does it help if you set a fixed-width font (such as courier new) for the QTextEdit ?
What exactly happens ? Does it help if you set a fixed-width font (such as courier new) for the QTextEdit ?
Hi,
In my app, it is not setting the fixed width font with QTextEdit so I am not able to get the output as I could see using std::cout.
If you tried to test above code you will see the difference between the expected output & actualt output.
Hi Pitonyak,
thanks for reply.
I tried usinbg QTextStream class ..but still I am not able to see formatting as per expected for QTextEdit class.
If you tried the output on command window using cout or qDebug and in QTextEdit you will able to see the difference.
e.g. Using cout
Values Keyword/Constant
One One
Three Three
Four Four
but in QTextEdit class
Values Keyword/Constant
One One
Three Three
Four Four
The column width is not setting propertly for QTextWidth.
I do not have an example handy that allows me to check a column width... I just looked where I expected to see such a thing.
Bookmarks