maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Menu opening after long press in pyqt? (https://talk.maemo.org/showthread.php?t=57732)

EmaNymton 2010-07-04 09:50

Menu opening after long press in pyqt?
 
Hi,
I'm writing a little application in pyqt. I wonder if it's possible to open a menu after pushing a listitem for a longer time than one single click. I've seen this in other applications (e.g. to delete or edit the item), but I have no idea, if it's possible in pyqt and where to search for.

EmaNymton

gilead 2010-07-04 10:01

Re: Menu opening after long press in pyqt?
 
I don't know pyqt but QWidget emits a signal "customContextMenuRequested(const QPoint&)" for this.

EmaNymton 2010-07-04 10:26

Re: Menu opening after long press in pyqt?
 
Yes, this is what i was looking for, thank you very much!


All times are GMT. The time now is 03:29.

vBulletin® Version 3.8.8