Results 1 to 2 of 2

Thread: QGraphicsView: Dialog Position Doubt

Hybrid View

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

    Default Re: QGraphicsView: Dialog Position Doubt

    When you receive the double click event, use the QGraphicsSceneMouseEvent::screenPos() and move the dialog relative to that point.

    It is not ok to use view coordinates, since they are local to the view and very volatile.

    Regards

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

    arjunasd (6th August 2007)

Similar Threads

  1. Initial Dialog Position
    By nleverin in forum Newbie
    Replies: 1
    Last Post: 15th July 2007, 11:19
  2. Dialog positioning in GNOME
    By simk in forum Qt Programming
    Replies: 2
    Last Post: 16th March 2006, 10:41
  3. dialog box
    By Bahar in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2006, 15:52

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.