Results 1 to 1 of 1

Thread: QWebPage unsupported content does not work

  1. #1
    Join Date
    Sep 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QWebPage unsupported content does not work

    I'm just updated from Qt 4.8.5 to Qt 5.2.1 and unfortunately forwarding of unsupported content in QWebPage does not work anymore.

    I've set forwardUnsupportedContent to true and I'm getting a reply with Content-Type="my_action". The content of the reply is xml based but I changed the Content-Type header by the server that delivers the reply. In 4.8.5 this always caused a call of the unsupportedContent signal but now the content of the WebPage gets fully grey and the Inspector gives me the XML-Content I wanted to handle by my Slot connected to unsupportedContent.

    Is it a bug or have I missed something?


    Added after 57 minutes:


    Ok strange thing is, it works if I submit Content-Type "application/my_action"... but why can't I use just "my_action"?


    Added after 1:


    Ok found the solution by myself. Obviously it's the definition of mime type that expect a slash between main and sub type and Qt5 is stricter with evaluation of mime types.
    Last edited by Zanjy; 8th May 2014 at 11:55.

Similar Threads

  1. Replies: 2
    Last Post: 29th October 2012, 10:52
  2. #Warning: "This version of Mac OS X is unsupported"
    By adaitabehera in forum Qt Programming
    Replies: 2
    Last Post: 25th September 2012, 09:31
  3. Replies: 6
    Last Post: 20th June 2012, 16:15
  4. Unwanted downloads with QWebPage/QWebPage
    By ouekah in forum Newbie
    Replies: 6
    Last Post: 11th May 2010, 22:48
  5. Q3PopupMenu - unsupported method issue
    By Amanda in forum Qt Programming
    Replies: 1
    Last Post: 19th November 2006, 10:11

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.