Results 1 to 3 of 3

Thread: QT Web browser

  1. #1
    Join Date
    Sep 2013
    Posts
    5
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QT Web browser

    Hi,

    I have been trying to develop a qt web browser for my organaisation, but i am not good in qt/c/c++ languages, so here is my code that I have developed till today. I want to add a tab option to this script, but I don't know how to do this. If any one can help on this that would be great.

    #include <QApplication>
    #include <QtGui>
    #include <QtWebKit>
    #include <QNetworkProxy>
    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);

    QNetworkProxy proxy;
    proxy.setType(QNetworkProxy::HttpProxy);
    proxy.setHostName(QString("XX.XX.XX.XX));
    proxy.setPort(9191);
    proxy.setUser("XXXXX");
    proxy.setPassword("XXXXXXX");
    QNetworkProxy::setApplicationProxy(proxy);

    QWebView view;
    view.load(QUrl("http://www.whatismyip.com"));
    view.show();
    return a.exec();
    }
    Last edited by prajith; 12th September 2013 at 11:07. Reason: spelling corrections

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: QT Web browser

    Did you check Qt web browser example ?
    I remember there is a full fledged browser in Qt examples... including tabs I guess.

  3. #3
    Join Date
    Sep 2013
    Posts
    5
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QT Web browser

    But, I want to hide the url bar and view source page option, and assign the url in the script, so agents can't see the url which I set in the script. I hope you can help on this,

Similar Threads

  1. Please help me qt browser
    By nguahoang205 in forum Qt Programming
    Replies: 1
    Last Post: 30th July 2012, 05:52
  2. Replies: 0
    Last Post: 17th March 2011, 04:17
  3. Not able to run fancy browser and demo browser example applications
    By GoGetIt in forum Installation and Deployment
    Replies: 1
    Last Post: 16th August 2010, 07:23
  4. Value Browser 3
    By Arsen in forum Qt-based Software
    Replies: 7
    Last Post: 27th December 2007, 15:12
  5. Web browser on Mac OS
    By pkloc in forum Qt Programming
    Replies: 2
    Last Post: 22nd March 2007, 02:21

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.