Results 1 to 4 of 4

Thread: Mouse click event problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Mouse click event problem

    I am programming using Qt-4.2.3 on a "kubuntu7.04" linux distro.
    I have MAJOR problems understanding some of the Qt4 documentation where there is no "code examples" of which there are very few in Qt4.

    so

    I have a drawing area "frmDrawing" with various items on it. I want to get the position of the mouse when I double click the left mouse button.

    Do I use !
    Qt Code:
    1. globalPos () const : const QPoint &
    To copy to clipboard, switch view to plain text mode 
    if yes, how? or do I use one of the other
    Qt Code:
    1. QMouseEvent ( Type type, const QPoint & position,
    2. Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers )
    To copy to clipboard, switch view to plain text mode 
    type? again if so what does it look like.?

    thanks
    Last edited by jacek; 2nd April 2007 at 21:39. Reason: wrapped too long line

Similar Threads

  1. The event fired by the mouse click on the frame
    By Placido Currò in forum Qt Programming
    Replies: 8
    Last Post: 3rd March 2007, 09:05
  2. Mouse Over event on button
    By vishal.chauhan in forum Qt Programming
    Replies: 9
    Last Post: 10th January 2007, 05:03
  3. mouse click in QGprahicsScene
    By Morea in forum Qt Programming
    Replies: 11
    Last Post: 21st December 2006, 08:21
  4. event problem
    By windkracht8 in forum Qt Programming
    Replies: 5
    Last Post: 17th August 2006, 11:52
  5. mouse click event
    By vijay anandh in forum Qt Programming
    Replies: 1
    Last Post: 1st May 2006, 09:24

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.