Results 1 to 2 of 2

Thread: Question about QWebKit/View

  1. #1
    Join Date
    Oct 2011
    Location
    Toronto Canada
    Posts
    97
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Question about QWebKit/View

    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..

  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: Question about QWebKit/View

    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.

Similar Threads

  1. Model/View Question
    By meazza in forum Newbie
    Replies: 7
    Last Post: 25th January 2015, 17:14
  2. QGraphicsItem .. Scene .. View question?
    By DirtyBrush in forum Qt Programming
    Replies: 21
    Last Post: 19th October 2010, 09:12
  3. model/view editing question
    By KShots in forum Qt Programming
    Replies: 2
    Last Post: 11th September 2008, 17:52
  4. A question about Model/View programming
    By awhite1159 in forum Qt Programming
    Replies: 5
    Last Post: 15th June 2008, 15:38
  5. General Question about Qt4 Model/View
    By reed in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2008, 15:06

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.