Results 1 to 3 of 3

Thread: How to orientate a moving item?

  1. #1
    Join Date
    Apr 2009
    Posts
    18
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question How to orientate a moving item?

    hi
    friends!In my program I want to orientate a moving item.for example,a item's position will be changed by the inputing position value,when the mouse's cursor move on the item,I want to show some information about that item.but first of all,how can I know the cursor is on the item?

    Thanks in advance!

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to orientate a moving item?

    Are you talking about graphics Item ?
    Look for some hover event. And also in paint event you get option which tells if the mouse is over or not.

  3. The following user says thank you to aamer4yu for this useful post:

    lengshuang (13th April 2009)

  4. #3
    Join Date
    Apr 2009
    Posts
    18
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to orientate a moving item?

    Thank you for the reply.I check out first.

Similar Threads

  1. why pushbutton moving??
    By Shuchi Agrawal in forum Qt Tools
    Replies: 7
    Last Post: 19th January 2007, 17:17

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.