Results 1 to 2 of 2

Thread: Mouse Capturing

  1. #1
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Cool Mouse Capturing

    I am using a QGLWidget and I want the ability to pick things. I know I can capture the screen coordinates of the mouse, but is there a functionality to convert the screen coordinates to the world coordinates of my QGLWidget? I was thinking with everything else Qt provides that maybe they would provide something like this but cannot seem to find it in the documentation or the Qt4 book. Thanks for your help!

  2. #2
    Join Date
    Aug 2006
    Posts
    15
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Mouse Capturing

    I'm not sure, but you'll probably need a OpenGL function to get this info

Similar Threads

  1. Replies: 2
    Last Post: 24th July 2006, 18:36
  2. QStackerWidget and mouse events
    By high_flyer in forum Qt Programming
    Replies: 3
    Last Post: 25th April 2006, 19:25
  3. setCanvas blocks mouse movement on QtCanvasView
    By YuriyRusinov in forum Qt Programming
    Replies: 8
    Last Post: 20th April 2006, 07:38
  4. Forwarding mouse events to another widget.
    By yogeshm02 in forum Qt Programming
    Replies: 8
    Last Post: 28th February 2006, 13:25
  5. Clearing a QLabel since the mouse position
    By SkripT in forum Qt Programming
    Replies: 10
    Last Post: 18th January 2006, 18:23

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.