Results 1 to 4 of 4

Thread: Qt Context menu

  1. #1
    Join Date
    Apr 2012
    Location
    Madurai, India
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Exclamation Qt Context menu

    Hi,

    I need a help regarding Qt Context Menu. how to link the static html to context menu. i.e When we select the "Alert"(Menu Name) in context menu it must load the html page as webview.
    Guys please help me..

    Thanks in advance

    --
    Jeyanthi Natarajan

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Context menu

    Connect the QAction::triggered() signal of your menu item to a slot and do whatever you want to your QWebView.

  3. #3
    Join Date
    Apr 2012
    Location
    Madurai, India
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Qt Context menu

    hi ChrisW67

    Thanks for your reply can u give me any sample code, i am new to QT

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Context menu

    You can find examples in the documentation (that one has both types of menus). All it takes is a quick search in Qt Assistant or even Google.

Similar Threads

  1. Replies: 1
    Last Post: 4th November 2011, 11:25
  2. Context menu on tab
    By wolfi3b in forum Newbie
    Replies: 2
    Last Post: 18th October 2010, 17:35
  3. Context menu
    By dejvis in forum Newbie
    Replies: 2
    Last Post: 20th September 2009, 22:02
  4. Qwt and context menu
    By giusepped in forum Qwt
    Replies: 1
    Last Post: 9th December 2008, 08:55
  5. Context Menu
    By RY in forum Newbie
    Replies: 1
    Last Post: 10th September 2008, 07:59

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.