Results 1 to 10 of 10

Thread: QGraphicsView rendering issue

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question QGraphicsView rendering issue

    Hi !

    I'm working on a QGraphicsView widget, meant to display interactive graphical items, that I can move / reshape / delete as I want.

    It works perfectly fine, the QGraphicsView framework is really good

    In order to filter this view with a color or a texture, I wanted to set a custom foreground brush to the scene, with this line :
    my_view->setForegroundBrush(QColor(255, 255, 255, 127));

    It applies well to the whole view, but when I move any item, I have some painting problems, described by the snapshot in attachment.

    I checked all the render hints, the painting methods for items, but I can't point the mistake.

    Any idea ?

    Thanks,
    Guilugi.
    Attached Images Attached Images

Similar Threads

  1. QGraphicsView, QGraphicsItem, QGraphicsScene
    By Shuchi Agrawal in forum Newbie
    Replies: 10
    Last Post: 23rd March 2011, 20:50
  2. Simulating Video on QLabel or QGraphicsView
    By forrestfsu in forum Qt Programming
    Replies: 9
    Last Post: 21st March 2007, 10:39
  3. How to make MDI editor with QGraphicsView support
    By Kuzemko in forum Qt Programming
    Replies: 4
    Last Post: 14th February 2007, 17:31
  4. Using QGraphicsView with model/view programming
    By JLP in forum Qt Programming
    Replies: 3
    Last Post: 29th January 2007, 11:04
  5. How to use QGraphicsView and Scene right ...
    By Mike in forum Qt Programming
    Replies: 6
    Last Post: 22nd January 2007, 08:51

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.