Results 1 to 2 of 2

Thread: Opening a web browser within (inside) a window on a button-click

  1. #1
    Join Date
    Mar 2013
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Opening a web browser within (inside) a window on a button-click

    Hi All,

    My requirement is to open a web browser "within" a window on a button-click, i.e; initially only a button is visible inside the window. On clicking the button, the browser should become visible in the window and load the given url.

    I thought of placing a gridlayout widget first in window and on top of that will place the QWebView widget for the browser. But, don't know how to hide the browser. Is this approach correct ? If yes, please guide me further steps. If not, please let me know the correct approach.

    I am using Qt 4.8.0 with designer IDE on Ubuntu 11.04.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Opening a web browser within (inside) a window on a button-click

    Just call hide() on the web view after creating it. It will remain hidden until you explicitly call show() on it again.

    Cheers,
    _

Similar Threads

  1. Replies: 3
    Last Post: 15th March 2012, 16:30
  2. Show new window on button click
    By jojanpm in forum Newbie
    Replies: 1
    Last Post: 29th November 2010, 13:51
  3. Replies: 0
    Last Post: 10th September 2010, 14:23
  4. Opening a browser in MAC
    By gren15 in forum Newbie
    Replies: 2
    Last Post: 30th June 2009, 17:54
  5. Opening swf file in the default browser
    By munna in forum Qt Programming
    Replies: 16
    Last Post: 5th May 2006, 10:33

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.