PDA

View Full Version : Question about QWebKit/View



prophet0
3rd April 2012, 05:38
i want to create a menu of some sort (unsure of what i would like to do your input is much appreciated) so at first im thinking a QListView/Widget and having custom delegate first will be a horizontal menu (icons) using iconmode then after click (click event) change the menu from iconmode to list mode so now a vertical menu (same data just no icons but using text) and show the data on webview..

so if i have a button that lets say QtCentre and somehow link that button to http://qtcentre.org and then show on a webview

any ideas how i would implement something like this ?

Ideas are much appreciated thanks so much QtCentre..

ChrisW67
3rd April 2012, 06:28
Connect the triggered() or clicked() signal from the QAction or QPushButton, or whatever mechanism you invent for your "menu", to a slot that calls QWebView::setUrl() on the web view.