Results 1 to 2 of 2

Thread: QTextDocument?

  1. #1
    Join Date
    Mar 2007
    Posts
    69
    Thanks
    14
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X

    Question QTextDocument?

    Hi All,

    I m using Qt 4.1.5 on my MAC.
    I am obtaining a QString by comverting its text into hex form and then showing each item as a QTreeWidgetItem in which I have 4 columns and I m inserting the value row by row as--

    FFD8 FFD9 ABCD DBAC
    FAD8 F009 000A 0B0A
    FFD8 FFD9 ABCD DBAC
    FAD8 F009 000A 0B0A .......so on,

    now since adding item in a QTreeWidget is slow and I m reading the text to be converted from file so it can be very large.
    So I want to add them in another widget which will take this type of formatted text so Can i use QTextDocument?

    or If any body knows other widget which is fast then plz reply with some code of doing it.

    Thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTextDocument?

    Well, at least I can say that QTreeWidget is definitely not the way to go. You should achieve way better performance with QTreeView plus a simple QAbstractTableModel which wraps a QByteArray.
    Attached Files Attached Files
    J-P Nurmi

Similar Threads

  1. QTextDocument Image resource problem
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 16th August 2007, 15:28
  2. QTextDocument stinks
    By elcuco in forum Qt Programming
    Replies: 4
    Last Post: 24th July 2007, 12:30
  3. QTextFrame::iterator richtext QTextDocument problem?
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 20th July 2007, 01:02
  4. Replies: 0
    Last Post: 28th June 2006, 20:49
  5. How to convert QTextDocument to PNG file?
    By Gonzalez in forum Qt Programming
    Replies: 1
    Last Post: 2nd February 2006, 14:46

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.