Results 1 to 4 of 4

Thread: [QMenu] Context menu for widget created in Qt Creator

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jan 2009
    Posts
    51
    Thanks
    28
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: [QMenu] Context menu for widget created in Qt Creator

    Thanks a lot.
    I chose second method becouse first seems to be more complicated.
    It works, but menu appears somewhere in the corner of my desktop.
    I think I have to convert QPoint to global position, but how to do it?

    @EDIT
    Ok I found it.
    Function to convert QPoint to global position is QPoint QWidget::mapToGlobal ( const QPoint & pos ) const
    Last edited by Macok; 4th March 2009 at 18:11.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.