Results 1 to 3 of 3

Thread: RubberbandDrag doesn't seen

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default RubberbandDrag doesn't seen

    Hi,

    When I attept to rubberband( by setDragMode(QGraphicsView::RubberBandDrag) ) on my scene, it doesn't seen if any items exist on the scene. But if I remove the items on the scene, rubberband seems to work fine. What could be the problem? boundingRect() maybe?

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: RubberbandDrag doesn't seen

    Please try setting this property:
    Qt Code:
    1. QGraphicsView::setInteractive(true);
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: RubberbandDrag doesn't seen

    Hi

    I fixed the problem by customizing rubberband. Now I want to ask another question.

    My items in the scene looks odd locations when I perform zoom in or out with rubberband. What's the problem here?

Similar Threads

  1. RubberBandDrag, mouseMoveEvent and setSelectionArea
    By jonks in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2009, 06:29

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.