Results 1 to 7 of 7

Thread: Multi-line messages in QTableView

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    USA
    Posts
    142
    Thanks
    24
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Multi-line messages in QTableView

    Yeah, I think they must not have fixed the problem fully yet. Check to see if someone already has an active bug submitted, and if not tell the Trolls exactly what you said here (very good detail).
    Life without passion is death in disguise

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

    Conel (12th April 2006)

  3. #2
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Multi-line messages in QTableView

    Have you tried resizeRowsToContents()?

  4. #3
    Join Date
    Apr 2006
    Location
    Minsk, Belarus
    Posts
    33
    Thanks
    2
    Thanked 6 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Multi-line messages in QTableView

    Yes, I did. Invoking method reziseRowsToContents() makes multiline messages fully visible but this does not suit my needs. I use QTableView with my own model which takes items from the database and refreshes quite often. Since I also use QSortFilterProxyModel I can't predict where updated rows will appear. So every time I refresh the model I should invoke resize method for all rows in the table. Since the table may contain thousands of rows this is very time-consuming. So this workaround can not be applied here

  5. #4
    Join Date
    Feb 2006
    Location
    USA
    Posts
    142
    Thanks
    24
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Multi-line messages in QTableView

    Not only that, but he shouldn't have to fix TT bugs in his code. Much better for everyone if TT fixes this - they've already determined that such behaviour is a bug on their part.
    Life without passion is death in disguise

Similar Threads

  1. QTcpSocket exception.
    By Fastman in forum Qt Programming
    Replies: 9
    Last Post: 29th January 2008, 13:51
  2. Some very weird compilation warnings
    By MarkoSan in forum Qt Programming
    Replies: 21
    Last Post: 23rd January 2008, 16:48
  3. Qwizard crashed when created in a slot
    By joshlareau in forum Qt Programming
    Replies: 9
    Last Post: 15th January 2008, 09:16
  4. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  5. QTableView paints too much
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 26th July 2006, 18:42

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.