Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Adding a mimetype to QWebView
Forum Updated to NodeBB v4.3 + New Features

Adding a mimetype to QWebView

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mikeborgo
    wrote on last edited by
    #1

    Hello,

    I'm developing an application that embeds a QWebView component to access some web pages on a specific website.
    These pages at the end let me download a jnlp file that I have to download and then I'll run using a QProcess and the javaws command (No problems with this).

    The problem is that all works fine with a regular browser but not with the QWebView component, this because I see that the javascript code makes this check:

    window.navigator.mimeTypes["application/x-java-jnlp-file"] != ""

    This is true with my Chrome and Firefox browser, while it's false with QT.
    Is there a way I can add a mime type to the QWebView.

    Thank you,
    Michele

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on last edited by
      #2

      maybe you can catch it with "unsupportedContent signal":http://qt-project.org/doc/qt-4.8/qwebpage.html#unsupportedContent ?

      Can you provide internet link to test this issue?

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved