Results 1 to 5 of 5

Thread: QWT right click window.. (Context Menu)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Posts
    27
    Qt products
    Qt4
    Platforms
    Windows

    Question QWT right click window.. (Context Menu)

    hi all,

    i am new to this world of qt...
    I need to create an application where on my window if i take right click i need to get a context menu.. with some actions like cut, copy, paste, select all, etc....

    Qt Code:
    1. menu = new QMenu(this);
    2. menu->addAction("Cut");
    3. menu->addAction("Copy");
    4. menu->addAction("Paste");
    5. menu->addSeparator();
    6. menu->addAction("Select All");
    7. ......(list goes to 10)....
    8.  
    9. connect(menu, SIGNAL(triggered(QAction*)), SLOT(triggeredSlot(QAction*)));
    To copy to clipboard, switch view to plain text mode 

    i am getting many errors... with my application...
    can any one tell me what to do .... please.....
    Last edited by maveric; 22nd May 2008 at 11:56. Reason: spelling error

Similar Threads

  1. Double click resize window disable
    By MarkoSan in forum Qt Programming
    Replies: 3
    Last Post: 13th May 2008, 11:35
  2. Set a window as child at runtime
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 26th November 2007, 09:30
  3. close window when click on a label
    By sabeesh in forum Qt Programming
    Replies: 3
    Last Post: 29th October 2007, 07:35
  4. QTextBrowser - click on link - closes window
    By bruccutler in forum Newbie
    Replies: 2
    Last Post: 19th June 2007, 20:39
  5. Replies: 1
    Last Post: 9th February 2007, 09:41

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.