It looks like you are not accepting the event, try:
if event.button() == QtCore.Qt.RightButton:
self.rightClickMenu(event)
event.accept()
From the docs:
void QEvent::accept ()
Sets the accept flag of the event object, the equivalent of calling
setAccepted(true).
Setting the accept
Thanks, wasn't aware of being able to accept events.
So I tried this, instead of waiting for release I moved it up to when a
button is pressed to get a better idea of what was happening. I tried this:
def mousePressEvent(self, event):
if event.button() == QtCore.Qt.RightButton:
Hmm, that is what I would have thought, you could always try calling the table
widget directory in the case of ignores. Actually, I'll bet you have to do
this since you have overridden the mousePressEvent function.
QtGui.QTableWidget.mousePressEvent(event)
On 3/6/09 10:47 AM, Marc Nations
On Fri, 6 Mar 2009 07:50:57 -0800, Brian Kelley kel...@eyesopen.com
wrote:
Hmm, that is what I would have thought, you could always try calling the
table widget directory in the case of ignores. Actually, I'll bet you
have
to do this since you have overridden the mousePressEvent function.
On Friday 06 March 2009 06:53:01 am Marc Nations wrote:
Hi,
I'm trying to create a custom table which pops up a menu when the
user right clicks. This part works ok. It looks like this:
class Table(QtGui.QTableWidget):
def __init__(self, parent, gui):
On 06.03.09 08:40:17, Jim Bublitz wrote:
On Friday 06 March 2009 06:53:01 am Marc Nations wrote:
Hi,
I'm trying to create a custom table which pops up a menu when the
user right clicks. This part works ok. It looks like this:
class Table(QtGui.QTableWidget):
def __init__(self,
On Friday 06 March 2009 09:06:03 am Andreas Pakulat wrote:
On 06.03.09 08:40:17, Jim Bublitz wrote:
On Friday 06 March 2009 06:53:01 am Marc Nations wrote:
Hi,
I'm trying to create a custom table which pops up a menu when the
user right clicks. This part works ok. It looks like this:
On Fri, Mar 6, 2009 at 12:05 PM, Jim Bublitz jbubl...@nwinternet.comwrote:
- Show quoted text -
On Friday 06 March 2009 09:06:03 am Andreas Pakulat wrote:
On 06.03.09 08:40:17, Jim Bublitz wrote:
On Friday 06 March 2009 06:53:01 am Marc Nations wrote:
Hi,
I'm trying to create a