Results 1 to 2 of 2

Thread: Add data to a context menu entry

  1. #1
    Join Date
    Apr 2016
    Posts
    3
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Question Add data to a context menu entry

    Could we add line edit to a context menu and pass any parameters

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Add data to a context menu entry

    You can set almost arbitrary data to a QAction in a contex menu using QAction::setData().

    Cheers,
    _

Similar Threads

  1. menu entry which could disable all submenu entries
    By stella1016 in forum Qt Programming
    Replies: 2
    Last Post: 11th April 2012, 17:37
  2. Replies: 1
    Last Post: 4th November 2011, 11:25
  3. Can I delete qt creator menu entry using plugins?
    By mrsomeonee in forum Qt Tools
    Replies: 5
    Last Post: 29th August 2011, 16:53
  4. Qt Designer Impossible to drag and drop the menu entry.
    By bred in forum Qt Tools
    Replies: 14
    Last Post: 27th October 2010, 06:21
  5. Add a entry to the application menu
    By mace in forum Qt Programming
    Replies: 1
    Last Post: 28th April 2006, 06:32

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.