Results 1 to 3 of 3

Thread: How to change default clipping?

  1. #1
    Join Date
    Oct 2009
    Posts
    23
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to change default clipping?

    Hello, I have this image that when it scrolls into the view, if less than 1/2 of the image is in the view, it doesn't show at all! (Instead, it flickers until it turns solid after half of the image is in the viewing area)

    Is there a way to make it so that it shows the image in the viewing area as soon as it enters, even if it's only a part of the image? I get the feeling it decides to show the image after the image's midpoint passes the viewing boundary - I would like to change that "viewing point" to the ends of the image so any of it shows as soon as it enters, from the left, right, top and bottom.

  2. #2
    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: How to change default clipping?

    What are you using?
    GraphicsView?
    QPixmap on a widget?
    ==========================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.

  3. #3
    Join Date
    Oct 2009
    Posts
    23
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to change default clipping?

    Yes. It's a QGraphicsView and the item is QGraphicsItem embedded within a QgraphicsScene that's being viewed. There's scroll bars to move around the scene, and an image is supposed to show up as soon as it enters the view, but it's not showing up permanently until it enters at least "half way" which makes for some flickering borders. I thought this was a default property, but I can post my code if it's thought to be of some relevance.

Similar Threads

  1. QTreeView default drag action
    By onamatic in forum Qt Programming
    Replies: 2
    Last Post: 1st March 2010, 07:37
  2. How to change default manifest file?
    By piotr.dobrogost in forum General Programming
    Replies: 1
    Last Post: 22nd July 2009, 08:53
  3. Replies: 6
    Last Post: 8th July 2009, 20:28
  4. Change cursor & status during Drag & Drop
    By ronlongo in forum Qt Programming
    Replies: 0
    Last Post: 1st December 2008, 16:56
  5. change txt file type default icon
    By mismael85 in forum Qt Programming
    Replies: 8
    Last Post: 20th February 2008, 22:22

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.