[Qt-interest] QWebView and Word Docs

Eric Clark eclark at ara.com
Thu Sep 30 22:51:37 CEST 2010


Hello All,

I have an application that uses QWebView to create and view web pages. Normally, if the link clicked on is an external link (starts with http://) I open the link up in a new tab within my application and everything works fine. However, I am trying to make a link to a Word Document and it will not open in QWebView. I was wondering if anyone knew of a way to detect that the file is a Word Doc or PDF or any non-html document so that I can use the QDesktopServices::openUrl function to open in within Microsoft Word or whatever application handles the file instead? Or if QWebView is capable of displaying Word or PDF docs within the view itself?

Thanks in Advance!
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100930/7c386b27/attachment.html 


More information about the Qt-interest-old mailing list