Results 1 to 11 of 11

Thread: Wrong repainting on resize.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Wrong repainting on resize.

    But if the scene is larger after the resize, then you get holes if your pixmaps wont be able to fill the larger areas they need to fill which is what you get, if I unerstand your screenshort correctly.
    Can you post the "before" screen shot as well?
    And what happens when you resize to a smaller size?

    Why don't you just set your items on a larger item serving as background?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  2. #2
    Join Date
    Feb 2011
    Posts
    9
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60 Maemo/MeeGo

    Default Re: Wrong repainting on resize.

    If I resize if only by 10 px result is what you can see on the first screenshot.

    About the suggestion, do you mean to have the background as another item in back of all the others? Not to paint it to background?
    Attached Images Attached Images

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Wrong repainting on resize.

    Does your background have holes in it?
    Just use one without holes.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  4. #4
    Join Date
    Feb 2011
    Posts
    9
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60 Maemo/MeeGo

    Default Re: Wrong repainting on resize.

    No, it doesn't. The holes are pixmaps added to scene.

Similar Threads

  1. Repainting a QGraphicsView
    By Luc4 in forum Qt Programming
    Replies: 8
    Last Post: 29th April 2010, 14:09
  2. QGraphicsItem not repainting
    By eijnuhs in forum Qt Programming
    Replies: 3
    Last Post: 20th September 2008, 08:54
  3. Repainting widget
    By fear in forum Qt Programming
    Replies: 3
    Last Post: 26th March 2008, 08:37
  4. Replies: 2
    Last Post: 22nd January 2008, 16:10
  5. GraphicsScene Background repainting
    By manojmka in forum Qt Programming
    Replies: 3
    Last Post: 18th December 2007, 10:33

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.