Results 1 to 2 of 2

Thread: Grabbing qrubberband from qgraphicsview rubberband drag

  1. #1
    Join Date
    May 2010
    Posts
    30
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Grabbing qrubberband from qgraphicsview rubberband drag

    I have a qgraphicsScene that is populated by several large images arranged in a mossaic. I need to be able to get a sub-image as defined by a user's selection. It seemed that the qrubberband would be the best way to get the user's selection. It also seems that the qrubberband is used in the rubberband drag mode built into the qgraphics view. Is there any way to get the QRect selected by the QRubberband used in the drag mode before letting it select items on the scene?

  2. #2
    Join Date
    May 2010
    Posts
    30
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Grabbing qrubberband from qgraphicsview rubberband drag

    Solved:
    QGraphicsScene::selectionArea().boundingRect()

Similar Threads

  1. How to drag and drop on QGraphicsView frame
    By wudelei in forum Qt Programming
    Replies: 1
    Last Post: 16th April 2010, 08:04
  2. QGraphicsview RubberBand Drag Mode
    By gopikrishnav in forum Qt Programming
    Replies: 0
    Last Post: 14th December 2009, 06:37
  3. Drag and Drop from QListView to QGraphicsView
    By NoRulez in forum Qt Programming
    Replies: 0
    Last Post: 20th August 2009, 14:26
  4. QGraphicsView : scroll on drag
    By kghose in forum Qt Programming
    Replies: 4
    Last Post: 14th August 2008, 21:50
  5. QGraphicsView rubberband selection
    By Vladimir in forum Qt Programming
    Replies: 2
    Last Post: 29th January 2007, 21:21

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.