It can display a tree, but it doesn't have to.Originally Posted by NRGizeR
You can subclass QListViewItem and make it display richtext using QSimpleRichText.Originally Posted by NRGizeR
With QListView each line will be a different object, so you won't have problems with it.Originally Posted by NRGizeR
I'm not sure how large log file QListView can handle, but since you have to create a lot of QListViewItems, it might not be enough.
The alternative is QTextEdit or QTextBrowser. QTextEdit even can operate in Log mode (in which it should be able to display more text than in other modes, but it also supports less formatting tags). Unfortunately it won't be easy to hide and show particular lines, but maybe you can have two representations --- one internal on which you can operate easily and one for the QTextEdit, that contains processed log visible to the user (of course it will increase memory usage).
Third solution is to create your own widget and if you want only to display logs, it might not be that hard.




Reply With Quote
Bookmarks