Results 1 to 2 of 2

Thread: problem with mouse press event inside a QGraphicsView

  1. #1
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default problem with mouse press event inside a QGraphicsView

    I have one QGraphicsScene which is being used by two different QGraphicsView. One of these view is a member of a QDialog class. we have reimplemented mousePressEvent of QDialog class. When i run my application and perform a left click in QDialog, it is coming inside mousePressEvent() of QDialog class. But when i perform any click (left or right) on second view and then perform left click on my QDialog, control is not coming inside mousePressEvent().
    Right click on QDialog is working fine in both cases.

    Can anyone help me with this issue?

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: problem with mouse press event inside a QGraphicsView

    read my sig.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. long mouse press event
    By tonylin0826 in forum Newbie
    Replies: 5
    Last Post: 27th September 2012, 16:24
  2. Problem with mouse press on QGraphicsView.
    By pastispast in forum Qt Programming
    Replies: 10
    Last Post: 13th September 2010, 06:52
  3. QGraphicsview and mouse press event
    By eva2002 in forum Qt Programming
    Replies: 6
    Last Post: 26th January 2010, 05:04
  4. Mouse press event in a QGraphicsScene
    By Lykurg in forum Qt Programming
    Replies: 3
    Last Post: 19th June 2009, 10:28
  5. Checking for key press on mouse event
    By Cruz in forum Newbie
    Replies: 1
    Last Post: 24th January 2009, 18:18

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.