Results 1 to 4 of 4

Thread: Log browser suggestions?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Log browser suggestions?

    Quote Originally Posted by NRGizeR
    Isn't that like a tree structure?
    It can display a tree, but it doesn't have to.

    Quote Originally Posted by NRGizeR
    Or can it be used as a richtext text display widget as well?
    You can subclass QListViewItem and make it display richtext using QSimpleRichText.

    Quote Originally Posted by NRGizeR
    the most important part is really to be able to easily (in code) distinguish one line from another, and hide/show any given line quickly...
    With QListView each line will be a different object, so you won't have problems with it.

    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.

  2. The following user says thank you to jacek for this useful post:

    NRGizeR (14th July 2006)

Similar Threads

  1. Text Browser Link Question
    By taylor34 in forum Qt Programming
    Replies: 2
    Last Post: 20th June 2006, 20:54
  2. html browser!!
    By Seema Rao in forum Qt Programming
    Replies: 15
    Last Post: 12th May 2006, 10:24
  3. Opening swf file in the default browser
    By munna in forum Qt Programming
    Replies: 16
    Last Post: 5th May 2006, 10:33
  4. Need Basic html Browser
    By awalesminfo in forum Newbie
    Replies: 6
    Last Post: 21st March 2006, 18:14
  5. Skinnable GUI.. suggestions?
    By strandtc in forum Qt Programming
    Replies: 0
    Last Post: 1st March 2006, 06:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.