阅读背景:

QPlainTextEdit设置为无包裹时换行换行

来源:互联网 

I am trying to display ascii chars on a PlainTextEdit widget, however I've run into the issue where my lines are suddenly cut in half. There is a \n character where I actually want the text to start a new line, so this word wrapping feature is undesirable. I've tried setting the word wrap and line wrap modes to NoWrap, however it still produces the same undesirable image shown below. I can't display all the text for proprietary reasons, but essentially what happens is each C should be the start of a new line. There are 80 chars in each line, hence the loop. The widget is much larger than where the text is wrapped, so I'm really not sure what is happening here.I am trying to display ascii chars on a PlainTe




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: