Results 1 to 6 of 6

Thread: Reset timer on mouse click

  1. #1
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    29
    Thanked 50 Times in 47 Posts

    Cool Reset timer on mouse click

    Sir, i have the widget screen in which there is one table lying on it. Now when i click on the widget screen then it will automatically reset the timer. I am getting the mouse event on the widget but i am not getting mouse event when i click on the table. So what is the proper solution for that?
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Reset timer on mouse click

    What do you think happens to the mouse click events when you click on the table? Where might they be going?

  3. #3
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    29
    Thanked 50 Times in 47 Posts

    Default Re: Reset timer on mouse click

    I want to reset the timer just like keypad lock in the phone. When you touch the screen of the mobile, it resets the timer. That i want to perform here.
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

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

    Default Re: Reset timer on mouse click

    You didn't even think about the question Chris asked you, did you?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    29
    Thanked 50 Times in 47 Posts

    Default Re: Reset timer on mouse click

    yaa in that also i am resetting the timer. But what about when i move my mouse over the table header. Is there any signal slots there?
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

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

    Default Re: Reset timer on mouse click

    Quote Originally Posted by sonulohani View Post
    But what about when i move my mouse over the table header. Is there any signal slots there?
    There are events there, just like in your original situation with the table widget.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. RegisterHotKey with mouse click
    By mksuper3 in forum Qt Programming
    Replies: 0
    Last Post: 31st August 2011, 10:32
  2. Get mouse position on click?
    By N3wb in forum Qt Programming
    Replies: 2
    Last Post: 21st August 2010, 23:33
  3. Replies: 1
    Last Post: 9th February 2010, 12:11
  4. QListWidget right-mouse click
    By Skizmo in forum Qt Programming
    Replies: 6
    Last Post: 20th June 2007, 13:13
  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.