Results 1 to 2 of 2

Thread: Scene focusing in QGraphicsView

  1. #1
    Join Date
    Feb 2007
    Posts
    32
    Thanks
    3

    Default Scene focusing in QGraphicsView

    I have a large scrollable QGraphicsView area and I would like to receive input from the user concerning coordinates and would like for the scene to focus on the coordinates of interest. What functions of QGraphicsScene would make this possible? -Anthony

  2. #2
    Join Date
    Feb 2007
    Posts
    16
    Thanks
    1
    Platforms
    Windows

    Default Re: Scene focusing in QGraphicsView

    QGraphicsView::centerOn will center on a location
    QGraphicsView::mapToScene will convert view coords to scene coords

    Everything else, you can probably find here:

    http://doc.trolltech.com/4.2/classes.html
    http://doc.trolltech.com/4.2/qgraphi...e-members.html
    http://doc.trolltech.com/4.2/qgraphicsview-members.html

Similar Threads

  1. How to make MDI editor with QGraphicsView support
    By Kuzemko in forum Qt Programming
    Replies: 4
    Last Post: 14th February 2007, 17:31
  2. Using QGraphicsView with model/view programming
    By JLP in forum Qt Programming
    Replies: 3
    Last Post: 29th January 2007, 11:04
  3. How to use QGraphicsView and Scene right ...
    By Mike in forum Qt Programming
    Replies: 6
    Last Post: 22nd January 2007, 08:51
  4. Regarding QGraphicsView
    By kiranraj in forum Qt Programming
    Replies: 4
    Last Post: 22nd December 2006, 04:59
  5. QGraphicsView and QGraphicsScene speeds
    By jnk5y in forum Qt Programming
    Replies: 2
    Last Post: 20th October 2006, 07:13

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.