Results 1 to 18 of 18

Thread: QWebKit shows raw text

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QWebKit shows raw text

    Quote Originally Posted by prof.ebral View Post
    It is complete.
    Did you verify it with some validator service? Maybe there is something that you simply can't see that causes the problems.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Feb 2010
    Posts
    96
    Thanks
    4
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QWebKit shows raw text

    I will finish the network and create a new thread. The new client is having it's own problems. It just seems odd that the string would print to the console as HTML, but when I use that string to set the HTML I get raw text. I don't even get the HTML code in the raw text, just HTML stripped raw text.

  3. #3
    Join Date
    Feb 2010
    Posts
    96
    Thanks
    4
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QWebKit shows raw text

    I know this thread is nearly a year old, but I wanted to post my answer to my own problem in hopes that it helps someone else in the future. So please don't bombard me with thread necromancy.

    As it turns out the problem is in the setHtml method and the fact it is occurring within a threaded method. The setHtml method cannot operate outside of the Main GUI thread, so in order for me to post the correct HTML I need to use signals and slots. All is working much better now and I hope to use WebKit as a strong platform for my rich text chat box.

Similar Threads

  1. Replies: 1
    Last Post: 29th January 2010, 13:44
  2. Need a book or website that shows how to do qt animation
    By technoViking in forum Qt Programming
    Replies: 1
    Last Post: 6th November 2009, 05:00
  3. QWebView shows '?' instead of all images
    By doep in forum Qt Programming
    Replies: 2
    Last Post: 5th February 2009, 10:03
  4. Program that just shows a window
    By claudio-cit in forum Newbie
    Replies: 2
    Last Post: 5th July 2008, 09:55
  5. Custom Plug-in shows but layout is messed up
    By MrGarbage in forum Qt Tools
    Replies: 2
    Last Post: 21st July 2007, 16:12

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.