Results 1 to 4 of 4

Thread: to guide a "+" symbol on the screen with respect to mouse

  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Post to guide a "+" symbol on the screen with respect to mouse

    hello friends/experts,
    i am on the work to guide a symbol "x" (or) something in a screen where the "+" symbol has to move with respect to the mouse move ..... i want a suggestion that which example and way shall i consider as a guide in Qt4.4.3 ....
    shall i follow dragdrop or graphics ... i dont know which shall i follow because in all there is no movement without dragging ..
    please help ...

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: to guide a "+" symbol on the screen with respect to mouse

    You have to turn on mouse tracking. Then you will receive mouse events without mouse button having to be pressed.

  3. #3
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Post Re: to guide a "+" symbol on the screen with respect to mouse

    yes the same thing of using mouse move event i am implementing ......
    and getting the information of mouse position by QMouseEvent::globalPos() ..

    but i how can i position the "+" symbol according to Pos() ..... i need some examoles in that in Qt examples can u please let me find the perfect location ... i am using Qt4.4.3

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: to guide a "+" symbol on the screen with respect to mouse

    But what exactly is the problem? What is that you can't achieve exactly?

Similar Threads

  1. shared vs static
    By alisami in forum Installation and Deployment
    Replies: 3
    Last Post: 4th October 2008, 13:04
  2. Mouse position on screen
    By Nippler in forum Qt Programming
    Replies: 3
    Last Post: 7th August 2008, 14:22
  3. Replies: 16
    Last Post: 23rd May 2008, 10:12
  4. Link Errors
    By magikalpnoi in forum Qt Programming
    Replies: 5
    Last Post: 25th September 2006, 22:04

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.