Results 1 to 2 of 2

Thread: An Ftp Client to work with web browser

  1. #1
    Join Date
    Mar 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question An Ftp Client to work with web browser

    Hi!

    I've created a web browser myself with the help of a WebKit module and it works fine so far, then i want to create a program that will enable a user to download files from the web, actually its an ftp client program but i want to detect the link clicked on the web view if it directs to be downloaded then it downloads!, thing like Mozila firefox has!

    Hopeful I'll get ideas on how to do it guys, i don't even have a pattern clue on how to do it yet!

    Thanks!...

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: An Ftp Client to work with web browser

    Quote Originally Posted by thewooferbbk View Post
    but i want to detect the link clicked on the web view if it directs to be downloaded then it downloads!, thing like Mozila firefox has!.
    You need to look into 2 following options.
    1.
    void QWebPage::unsupportedContent ( QNetworkReply * reply ) [signal]
    This signals is emitted when webkit cannot handle a link the user navigated to.
    At signal emissions time the meta data of the QNetworkReply reply is available.
    Note: This signal is only emitted if the forwardUnsupportedContent property is set to true.
    2.
    void QWebPage::downloadRequested ( const QNetworkRequest & request ) [signal]
    This signal is emitted when the user decides to download a link. The url of the link as well as additional meta-information is contained in request.

Similar Threads

  1. QT 4.5 Embedded Linux Demo Web Browser does not work
    By saltuka in forum Qt Programming
    Replies: 1
    Last Post: 1st November 2010, 04:11
  2. WebIssues Client 0.9.5
    By mimec in forum Qt-based Software
    Replies: 0
    Last Post: 17th August 2009, 12:01
  3. QT Demo browser does not work !
    By torpedo in forum Qt Tools
    Replies: 3
    Last Post: 7th April 2009, 10:56
  4. Replies: 0
    Last Post: 22nd February 2009, 13:15
  5. synching client readings to server output
    By OnionRingOfDoom in forum Qt Programming
    Replies: 14
    Last Post: 28th January 2006, 18:15

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.