View Full Version : QWebPage unsupported content does not work

8th May 2014, 12:55
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.