Results 1 to 12 of 12

Thread: Immediate paint

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: Immediate paint

    Quote Originally Posted by zgulser View Post
    Yes. But I don't get the point. I mean if there exists a method for the widgets then why items doesn't have one?
    Why would they need one? If you want the view of the items repainted, then call repaint() on the view. Items have nothing to do with this. Calling update() on items has nothing to do with repainting the views, that's just a potential side effect of the call. The item only informs the scene it has been changed.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Mar 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Immediate paint

    Items are more the model part, widgets are more the view part. You have to paint on view always. For eg : for a treeView, try calling viewport's repaint(). If u have treeWidget, try calling its repaint().
    Also if you could provide some more information as to what exactly you wish to achieve..

Similar Threads

  1. Drawing standard widgets using a custom paint engine
    By Waywocket in forum Qt Programming
    Replies: 26
    Last Post: 21st October 2010, 20:40
  2. Drawing a widget in QItemDelegate's paint method
    By darkadept in forum Qt Programming
    Replies: 17
    Last Post: 11th August 2009, 05:15
  3. how to group paint calls together ??
    By tampstaffs in forum Qt Programming
    Replies: 3
    Last Post: 26th February 2009, 16:35
  4. cairo4qt 0.9 - a cairo based paint engine for Qt4
    By dragchan in forum Qt-based Software
    Replies: 0
    Last Post: 18th May 2007, 05:07
  5. paint QTreeView item !!
    By mcenatie in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2006, 14:24

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.