Active Topics

 


Reply
Thread Tools
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#1
Having just spent the better part of two weeks on figuring this out I'm posting this here for future ref.

Maelophone was suffering slow response when you double clicked on the same note very quickly. I had sub-classed the qt mousePressEvent to handle the clicks on the keys. But when I pressed the same note twice very quickly it seemed to ignore half the events.

That was because the system interpreted them as double clicks and on further research there is a double click event. So solutions was

Code:
def mousePressEvent(self,event):
      self.emit(SIGNAL("mouse clicked"),self.buttonid)

def mouseDoubleClick(self,event):
      self.emit(SIGNAL("mouse clicked"),self.buttonid)   
      self.emit(SIGNAL("mouse clicked"),self.buttonid)   
   
def mouseReleaseEvent(self,event):
      self.emit(SIGNAL("mouse released"),self.buttonid)

hope this helps someone
__________________
N900_Email_Options Wiki Page
 

The Following User Says Thank You to mikec For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 13:57.