0

What is the best way to a text based output in a Qt widget? what I mean by this is... like in win RAR or some windows installers where there is a drop down arrow showing more details and it shows live text output of files modified and things of that nature. how would I go about doing that in a Qt app?

I was thinking maybe a none editable multiple line text box... but I'm not sure, because I don't wan't it to be editable.

any help on this would be greatly appreciated.

4

1 回答 1

1

QLabel

QTextDocument

QTextEdit

几乎所有上述选项都可以通过禁用它们来配置为“只读”甚至不可点击。

QTextStream也是一个非常有用的类。

希望有帮助。

于 2013-07-09T20:49:34.527 回答