Results 1 to 3 of 3

Thread: Draw part of rectangle intersecting in QGraphicsScene

  1. #1
    Join Date
    Jun 2013
    Posts
    31
    Thanks
    8
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Draw part of rectangle intersecting in QGraphicsScene

    I have a QGraphicsScene on which I show a video . I have another red colour rectangle which is QGraphicsItem. This rectangle (QGraphicsPixmapItem) lies on the image on QGraphicsScene. I have a yellow rectangular box (QGraphicsItem) which I use to zoom area on the scene.
    I show the part of area under yellow box by cropping the video to the respective co ordinates in another View window. However if the zoom window overlaps with red rectangle I want to show the part of red rectangle under the zoom window.
    How can I do this?

    Thank you.

  2. #2
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Draw part of rectangle intersecting in QGraphicsScene

    Quote Originally Posted by SiddhantR View Post
    I have a QGraphicsScene on which I show a video . I have another red colour rectangle which is QGraphicsItem. This rectangle (QGraphicsPixmapItem) lies on the image on QGraphicsScene. I have a yellow rectangular box (QGraphicsItem) which I use to zoom area on the scene.
    I show the part of area under yellow box by cropping the video to the respective co ordinates in another View window. However if the zoom window overlaps with red rectangle I want to show the part of red rectangle under the zoom window.
    How can I do this?

    Thank you.
    Can you attach screen shots?

  3. #3
    Join Date
    Jun 2013
    Posts
    31
    Thanks
    8
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Draw part of rectangle intersecting in QGraphicsScene

    Quote Originally Posted by saman_artorious View Post
    Can you attach screen shots?
    ZoomProblem.png

    I want something like this.
    Thank You.

Similar Threads

  1. How to draw a rectangle or line on an image
    By Shubham in forum Newbie
    Replies: 6
    Last Post: 18th February 2014, 07:17
  2. Draw rectangle on QImage
    By ^NyAw^ in forum Qt Programming
    Replies: 12
    Last Post: 25th January 2013, 12:33
  3. Replies: 2
    Last Post: 9th November 2012, 17:16
  4. How to draw a QPainter rectangle over Widgets
    By sureshdharmadurai in forum Qt Programming
    Replies: 1
    Last Post: 24th November 2011, 10:17
  5. how to draw columns in QPainter's rectangle
    By jyoti in forum Qt Programming
    Replies: 1
    Last Post: 24th August 2007, 10:50

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