PDA

View Full Version : Qt Context menu



jeyanthinatarajan
4th April 2012, 09:26
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

ChrisW67
4th April 2012, 10:06
Connect the QAction::triggered() signal of your menu item to a slot and do whatever you want to your QWebView.

jeyanthinatarajan
4th April 2012, 11:15
hi ChrisW67

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

ChrisW67
4th April 2012, 23:26
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.