Results 1 to 8 of 8

Thread: QLogText & QLogTable : 2 widgets to display text log

  1. #1
    Join Date
    Jan 2006
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Lightbulb QLogText & QLogTable : 2 widgets to display text log

    In Qt4, there is no basic widget which allow to display basic text like a log file. Secondly, QTextEdit, QTextBrowser or QTableWidget are very slow and need lots of memory to only display some data (for debug purpose).

    That's why I created 2 very basic widgets :
    • QLogText is like QTextBrowser but only to display plain text
    • QLogTable is like QTableWidget for plain text

    These widgets support only proportionnal font and they don't support copy/paste/cut and selection operations. Unicode text shouldn't work with these widgets.

    I don't know if these both widgets are really usable, but maybe, they could be improved thanks to this forum.
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: QLogText & QLogTable : 2 widgets to display text log

    Cool idea. Qt3 had a property for the QTextBrowser to show only plaintext but large amounts of them. Copy and paste would be nice for logfiles. You could have a look at the sourcecode of the MultiLineEdit of Qt1 or 2 to see how to do this.
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Jan 2006
    Posts
    30
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QLogText & QLogTable : 2 widgets to display text log

    I can't download log widgets!.. When I try to do it login window appears, though I'm logged in already. It seems like a bug in forum..

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

    Default Re: QLogText & QLogTable : 2 widgets to display text log

    Quote Originally Posted by Elder Orb
    I can't download log widgets!.. When I try to do it login window appears, though I'm logged in already. It seems like a bug in forum..
    I've checked the forum configuration and everything seems to be OK. Try to log out, remove all cookies and log in again.

    Does anybody have similar problems?

  5. #5
    Join Date
    Jan 2006
    Posts
    30
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QLogText & QLogTable : 2 widgets to display text log

    I've tried to download attaches in IE and all was ok. Problems was because of opera..

    2fcoiffie: Big thanks! Good job!

  6. #6
    Join Date
    Jan 2006
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QLogText & QLogTable : 2 widgets to display text log

    Yes, Opera (9 TP 1) has a problem here.

  7. #7
    Join Date
    Jan 2006
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QLogText & QLogTable : 2 widgets to display text log

    Update of a previous thread :
    In Qt4, there is no basic widget which allow to display basic text like a log file. Secondly, QTextEdit, QTextBrowser or QTableWidget are very slow and need lots of memory to only display some data (for debug purpose).

    That's why I created 2 very basic widgets :
    • QLogText is like QTextBrowser but only to display plain text
    • QLogTable is like QTableWidget for plain text

    These widgets support only proportionnal font and they don't support copy/paste/cut and selection operations. Unicode text shouldn't work with these widgets.

    I don't know if these both widgets are really usable, but maybe, they could be improved thanks to this forum.
    Attached Files Attached Files

  8. #8

    Default Re: QLogText & QLogTable : 2 widgets to display text log

    after 13 years
    hi i use your file but i have a problem i need copy these logs and paste on another places
    i search a lot in froums and not find answer
    is this possible to copy content of QLogText?

Similar Threads

  1. Can't change the text display of a QTreeview item.
    By johnny_sparx in forum Qt Programming
    Replies: 3
    Last Post: 2nd June 2006, 02:03

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.