Results 1 to 15 of 15

Thread: Painting artefacts when using QPen with style other than SolidLine in QGraphicsView

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Platforms
    MacOS X Unix/X11
    Thanks
    1
    Thanked 52 Times in 52 Posts

    Default Re: Painting artefacts when using QPen with style other than SolidLine in QGraphicsVi

    Can you post a zip-file containing a minimal, compileable example? From what I see, your first example is not complete because MyScene is missing. Then I can try out on my mac.
    It's nice to be important but it's more important to be nice.

  2. #2
    Join Date
    Jun 2008
    Posts
    57
    Qt products
    Qt4
    Platforms
    Windows
    Thanked 1 Time in 1 Post

    Default Re: Painting artefacts when using QPen with style other than SolidLine in QGraphicsVi

    Here it is...
    Attached Files Attached Files

  3. #3
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Platforms
    MacOS X Unix/X11
    Thanks
    1
    Thanked 52 Times in 52 Posts

    Default Re: Painting artefacts when using QPen with style other than SolidLine in QGraphicsVi

    I get painting artifacts when scrolling, see Screenshot. This looks like a bugreport. You should search in the bug database whether something similar was already reported. If not, open a new issue and describe in detail how to reproduce this. I had to look into the sourcecode to see that I need to doubleclick. Also I first thought that everyone was fine until I scrolled around by accident.
    Attached Images Attached Images
    It's nice to be important but it's more important to be nice.

  4. #4
    Join Date
    Jun 2008
    Posts
    57
    Qt products
    Qt4
    Platforms
    Windows
    Thanked 1 Time in 1 Post

    Default Re: Painting artefacts when using QPen with style other than SolidLine in QGraphicsVi

    Seems like this is it
    http://bugreports.qt.nokia.com/browse/QTBUG-6856
    I wonder when they are going to release 4.6.1... don't want to download and build current branches <_<

    Thanks!

  5. #5
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Platforms
    MacOS X Unix/X11
    Thanks
    1
    Thanked 52 Times in 52 Posts

    Default Re: Painting artefacts when using QPen with style other than SolidLine in QGraphicsVi

    You should try the current branch to see whether your problem is really fixed. Maybe it is something else and can be included in 4.6.1 if not covered by that fix mentioned in the bugtracker.
    It's nice to be important but it's more important to be nice.

  6. #6
    Join Date
    Jun 2008
    Posts
    57
    Qt products
    Qt4
    Platforms
    Windows
    Thanked 1 Time in 1 Post

    Default Re: Painting artefacts when using QPen with style other than SolidLine in QGraphicsVi

    Yahoo! they assigned P2 to my bugreport. Rather quick response and it's not a duplicate.
    http://bugreports.qt.nokia.com/browse/QTBUG-7253

Similar Threads

  1. Diff between QBrush and QPen
    By wagmare in forum Qt Programming
    Replies: 5
    Last Post: 16th February 2009, 15:47
  2. QPen color shift
    By Alberto in forum Qt Programming
    Replies: 0
    Last Post: 22nd October 2008, 12:35
  3. QGraphicsView : change selected rectangle style
    By kghose in forum Qt Programming
    Replies: 2
    Last Post: 28th July 2008, 19:12
  4. Slow painting in QGraphicsView
    By JonathanForQT4 in forum Qt Programming
    Replies: 12
    Last Post: 16th July 2007, 10:54
  5. Problems with QPen
    By prosass in forum Newbie
    Replies: 3
    Last Post: 13th March 2007, 16:54

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.