July 31, 2012

krisztiantobias krisztiantob..
Lab Rat
7 posts

EnterEvent and LeaveEvent don’t work perfectly

 

Hello, my problem is the next. I want a hover (enterEvent) effect and an animated hide effect (leaveEvent) with EnterEvent and LeaveEvent. That works fine on the early, but if I do 5-6 really fast call, can not be called anymore anyone Event

After the 7. (it’s random, 1-20) enterEvent the leaveEvent doesn’t work…
– Gif Picture – [img32.imageshack.us]

You can see, nothing is in the events:

  1. void Clock::enterEvent(QEvent *event){
  2.     counter++;
  3.     qDebug() << QString::number(counter) + ". call";
  4.     qDebug() << event;
  5. }
  6. void Clock::leaveEvent(QEvent *event){
  7.     qDebug() << event;
  8. }

0 replies

 
  ‹‹ QDockWidgets disappear      Signals aren’t good for bool functions ››

You must log in to post a reply. Not a member yet? Register here!