Results 1 to 1 of 1

Thread: static sight on QGraphicsView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default static sight on QGraphicsView

    Hi.

    I have a QGraphicsView where the view port is updated by the user. The view port has a static size of 200 x 200.
    I want to add a sight to my view port. Fx. drawn two lines:
    line1: (100 , 0) (100 , 200)
    line2: (0 , 100) (200 , 100)

    that comprise a cross in the center of my view port.

    This sight should always follow the view port and i terms of the view port be static.

    Can I do this without making a sub class of either QGraphicsView or QGraphicsScene?

    If I have to make my own subclass of one of the mentioned Qt classes, what would be the easiest way to add a sight?

    Regards,
    Thomas
    Last edited by thgis; 7th October 2010 at 09:24. Reason: updated contents

Similar Threads

  1. Static Qt with static CRT (VS 2008)
    By JacekFx in forum Installation and Deployment
    Replies: 5
    Last Post: 15th June 2010, 13:57
  2. Qt 4.6.0 static
    By vdolek in forum Installation and Deployment
    Replies: 3
    Last Post: 28th December 2009, 12:51
  3. Replies: 22
    Last Post: 8th October 2008, 13:54
  4. Putting static controls on top of QGraphicsView
    By durbrak in forum Qt Programming
    Replies: 3
    Last Post: 10th September 2007, 12:51
  5. Replies: 4
    Last Post: 14th February 2006, 21:35

Tags for this Thread

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.