Results 1 to 2 of 2

Thread: QTextDocument::addResource in QWebView

  1. #1
    Join Date
    Jul 2011
    Location
    Brasil
    Posts
    39
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QTextDocument::addResource in QWebView

    Hi all,

    I'm developing an knowledge-database application using Qt an MySql. The users can add articles with sections and images.
    Currently I'm using QTextBrowser, and, since the images come from the MySql, I search <img src="image:/(keyword)"> and do an QTextBrowser::document()::addResource() to insert the correct image in the container.

    It's all working, but I'll have to change QTextBrowser by an QWebView, once QTextBrowser doesn't support full css and javascript.

    Now, how can I change the request by and image for an image in my database using QWebKit?

    PS: I'll need to convert it to PDF, if the users ask for that...

    Thanks in advance.

  2. #2
    Join Date
    Jul 2011
    Location
    Brasil
    Posts
    39
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTextDocument::addResource in QWebView

    It was hard to find, but i found it...

    http://doc.qt.nokia.com/qq/32/qq32-w...protocols.html

    This shows how to use a QWebView to show contents from an ftp site (not supported natively).

Similar Threads

  1. Replies: 8
    Last Post: 3rd September 2013, 10:51
  2. QTextDocument question
    By chandan in forum Newbie
    Replies: 2
    Last Post: 14th May 2010, 15:08
  3. QTextDocument color
    By bunjee in forum Qt Programming
    Replies: 9
    Last Post: 25th April 2008, 19:54
  4. QTextDocument Html
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 17th November 2007, 13:50
  5. QTextDocument?
    By thomasjoy in forum Qt Programming
    Replies: 1
    Last Post: 15th August 2007, 23:42

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.