Results 1 to 3 of 3

Thread: [SOLVED] Help Request - Table with Right-Click Context Menu

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    14
    Thanks
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question [SOLVED] Help Request - Table with Right-Click Context Menu

    Good Day Everyone,

    I have been using QT Designer (3.3.6) for about 2 weeks now and while I understand the basic concepts it seems I need help with some of the not so obvious things.

    In this caseI have a QTable in my main form. What I am looking to do is add a Right-Click context menu on the table, that has a select set of options (i.e. Delete, Add, Modify). Upon clicking on one of the options it would call a method (or I suppose the proper terminolgy is Slot) that I have written. I currently have the method set up on a button so when the user clicks it, everything works. Now I'm just looking to add the Context Menu for quicker access.

    In the research I have done I keep running across this QPopupMenu option, but not sure how to use that just yet. I have also searched the forums and did not see anything that really explains whats going on.

    Any and all help would be appreciated, even if it is a "Hey check out this post <insert link here>."

    Thanks,

    Sarol
    Last edited by Sarol; 3rd May 2011 at 21:21.

Similar Threads

  1. how to make the popup context menu disappear when click the options softkey ?
    By kongkong163 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 18th January 2011, 03:39
  2. context menu for table
    By sattu in forum Qt Programming
    Replies: 2
    Last Post: 10th January 2011, 09:09
  3. Open a pop up menu when right click on any cell of the table
    By katta_ashish in forum Qt Programming
    Replies: 4
    Last Post: 9th September 2010, 07:06
  4. cancle right click context menu in qtwebkit
    By umen in forum Qt Programming
    Replies: 1
    Last Post: 6th August 2009, 21:06
  5. QWT right click window.. (Context Menu)
    By maveric in forum Qt Programming
    Replies: 4
    Last Post: 25th May 2008, 08:07

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.