Results 1 to 8 of 8

Thread: x11,about qwidget::repaint()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Location
    Nanjing, China
    Posts
    66
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default x11,about qwidget::repaint()

    Hi all
    I use QTableView,QTableModel(inherit QAbstractTableModel)to display data.
    Every second, I change the background color in model and emit signal.In the slot, I use tableview->viewPort()->repaint() to repaint the tableview.

    In windows, the program works well. But in x11(suse), the background color does not change at all.

    Please give a clue! Thank you in advance.


    ps: I use qApp->processEvents() after tableview->viewPort()->repaint().But has no effect.In qt assistant there is int QApplication::x11ProcessEvent ( XEvent * ), but I do not know how to use it. what is a xevent?
    Last edited by calmspeaker; 7th December 2009 at 01:40.
    Jerry

Tags for this Thread

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.