Results 1 to 2 of 2

Thread: Q3Canvas problem (zoomed in drawBackground)

  1. #1
    Join Date
    Jan 2006
    Location
    Genk, Belgium
    Posts
    36
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Q3Canvas problem (zoomed in drawBackground)

    While migrating to Qt 4, a QCanvas subclass became a Q3Canvas subclass. The behaviour of drawBackground seems to have changed. When zoomed in and scrolling, drawing is clipped somewhat at the borders.

    This is illustrated in the following screenshot:



    There is a small white border between the visible content pixels and the scrollbars.
    When scrolling, this gives rise to a more or less regular pattern of horizontal resp. vertical white bars.
    I am certain that I do draw the missing pixels to the painter, but the seem to disappear. (In fact, for certainty I first extend the clip with 10 pixels in each direction...)

    Has something changed that I am not aware of?
    Last edited by Pieter from Belgium; 10th October 2006 at 15:48.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Q3Canvas problem (zoomed in drawBackground)

    I'd suggest that you move to QGraphicsView instead of Q3Canvas. That is just my 0.02USD though...

Similar Threads

  1. Facing problem with Q3Canvas
    By jnana in forum Qt Programming
    Replies: 3
    Last Post: 6th May 2006, 07:00
  2. Replies: 16
    Last Post: 7th March 2006, 15:57

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.