Results 1 to 6 of 6

Thread: QGraphicsView general questions

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QGraphicsView general questions

    Off Topic Question : What does rubberbanding mean? I've read this in a lot of threads and still can't imagine what this does.
    A rubberband is a rectangle that appears when performing selections by dragging the mouse. Not only in graphics views but also in items views. It shows you the selection bounds.

    Off Topic Question: Can Anyone here direct/point me to a very good example of how to subclass QGraphicsView in order for me to place markers (dots) in my QGraphicsView? I was thinking of markers like in the Affine Transformations example in the demos of Qt. I can't understand the hoverpoint mechanism for the Affine Transformations example.
    No example, but subclassing the view and overriding drawForeground should solve the painting problem.
    For interaction, you could override mouseMove/Press events for the view and check for the dots coordinates and act accordingly.

    Regards

  2. The following user says thank you to marcel for this useful post:

    sincnarf (23rd August 2007)

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.