OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Double Click Event On A User Control, not reponsive or predictable
nilch
post Aug 1 2005, 12:24 PM
Post #1





Group: Members
Posts: 668
Joined: 3-December 03
From: US
Member No.: 1,034



This is for an App written in Python/PyQT...

I defined a double click event on a user created control (a cell of a QTable object).
But when I double click on it - it is sometimes responsive and brings up a sub-form on that event (as defined by a SLOT), sometimes it doesn't seem to react at all.

It seems very unpredictable. I have tried with slow taps, fast taps etc, but on the zaurus its just not predictable while on the desktop the same app behaves perfectly).

Any reasons for it, or any workarounds ???

Code snippets-----------------------------------------------

def mouseDoubleClickEvent(self, ev):
# --- dblClick event passes the currentIndex of widget dblclicked
curr_Idx = (self.currIndex(),)
self.emit(PYSIGNAL('dblClicked()'),curr_Idx)

and in the SIGNAL/SLOTS I defined
self.cControl.connect(self.cControl,PYSIGNAL('dblClicked()'),self.doDblClickSelect)
where self.DblClickSelect is a function to be called on double click.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd August 2014 - 05:25 AM