Results 1 to 2 of 2

Thread: Changing Default QRubberBand in QGraphicsView

  1. #1
    Join Date
    Nov 2009
    Posts
    39
    Thanks
    9
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Changing Default QRubberBand in QGraphicsView

    How do I access/change the QRubberBand that gets used in a QGraphicsView when I setDragMode(QGraphicsView::RubberBandDrag)? I just want to change the color and thickness of it, not its behavior.

  2. #2
    Join Date
    Nov 2009
    Posts
    39
    Thanks
    9
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Changing Default QRubberBand in QGraphicsView

    Just wanted to follow up:

    After looking through Qt code, I've come to the conclusion that there's no way to change the default rubber band pen/brush without reimplementing the behavior. If I'm wrong about this, someone please let me know.

Similar Threads

  1. Replies: 6
    Last Post: 18th September 2013, 21:03
  2. Changing the border of a QRubberBand
    By Sergex in forum Qt Programming
    Replies: 1
    Last Post: 1st August 2012, 03:17
  3. Grabbing qrubberband from qgraphicsview rubberband drag
    By grabalon in forum Qt Programming
    Replies: 1
    Last Post: 18th May 2010, 01:15
  4. Changing default event handler name
    By mabeeh in forum Newbie
    Replies: 1
    Last Post: 21st April 2008, 15:18
  5. changing default QCompleter ?
    By hicpalm in forum Qt Programming
    Replies: 2
    Last Post: 3rd March 2008, 10:49

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.