Results 1 to 7 of 7

Thread: repaint a cell or row in QTableWidget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: repaint a cell or row in QTableWidget

    Use update() with parameters set to your item's rectangle (visualItemRect());

    BTW. Try to avoid using repaint() if possible.

  2. #2
    Join Date
    Jun 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: repaint a cell or row in QTableWidget

    Quote Originally Posted by wysota View Post
    Use update() with parameters set to your item's rectangle (visualItemRect());

    BTW. Try to avoid using repaint() if possible.
    can u give a simple snippet of code showing how to use the update() and visualitemrect() functions. I am facing a similar problem too. Give a snippet of code wherein i have to update a column(every element in the column) in the table with time.

    Thanks!!

Similar Threads

  1. Replies: 5
    Last Post: 26th October 2014, 12:56
  2. Replies: 1
    Last Post: 2nd December 2008, 18:33
  3. Problems with QString
    By cyberboy in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2008, 08:18
  4. Replies: 0
    Last Post: 2nd May 2008, 07:57
  5. Word wrapping in a QTableWidget cell
    By jcooperddtd in forum Qt Programming
    Replies: 3
    Last Post: 1st May 2007, 03: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.