On Fri, Dec 28, 2007 at 07:38:48PM +0100, Abdelrazak Younes wrote:
> Jean-Marc Lasgouttes wrote:
>> Abdelrazak Younes <[EMAIL PROTECTED]> writes:
>>> Dear all,
>>>
>>> As Juergen already uncovered I am pleased to announce preliminar basic
>>> support for context menus in trunk. Still a lot of ui polishing to do
>>> before this feature is really useful. Right now we only get the 'edit'
>>> menu when right clicking somewhere in text.
>> It would be nice to have the menu at mouse cursor position.
>
> That's that I tried to do but it does not work well. Qt docs says that one 
> should use QMenu::sizeHint() instead, I'll try this.

QAction * QMenu::exec(const QPoint & p, QAction * action = 0) 
or more specifically  exec(QCursor::pos()) is all that I needed so far...

Andre'

Reply via email to