PDA

View Full Version : Flash, PDF and plugins



brcontainer
19th August 2013, 14:03
When I open PDF files, swf, mp3 directly (or iframe) using QWebView, the Qt Widgets disappear if I go back to a page html widgets return to reappear, see image:

9427

Note:

Windows 7 32bit, 46bit
Windows 8 32bit
Adobe Reader 11
Adobe Flash 11
qt5.0.1, qt5.0.2, qt5.1.0
mingw4.8

wysota
19th August 2013, 15:18
It is hard to make out from what you wrote what you really mean. Consider rewriting your post in a more descriptive way.

brcontainer
19th August 2013, 16:12
I edited. Could you help me? Thanks.

wysota
19th August 2013, 19:59
How are "Qt widgets" related to the web view?

brcontainer
19th August 2013, 21:44
Qtwidgets are the "address bar" and "buttons", "go", "back", etc..

In the middle of the screen has a QWebView. When you open a PDF file for example, the address bar and buttons disappear (like in the picture that I attached in the first post) just getting QWebView visible.

I know it's kind of hard to understand what I said, so I did a sample test please:

http://www.mediafire.com/?ddc3451wmrotmc9

Thanks.

wysota
19th August 2013, 22:00
Unfortunately I don't have Windows with Acrobat Reader plugin so I can't test it. But assuming the behaviour you observe is caused by the plugin, there is not much you can do since a Qt app has no control over nsapi plugins.

brcontainer
20th August 2013, 01:40
I realized now that in fact the contents of the plugin gets x and y equal to 0 (zero)
Instead of using the x and y position as webview. See the picture:

example of the problem with FoxitReader and AdobeReader.

9433

Maybe a bug in QT.

Example (bin and source):
http://www.mediafire.com/download/ukr17cjw8yrgr6w/webviewexample2.zip

ChrisW67
21st August 2013, 00:49
I assume one of these is you:
https://bugreports.qt-project.org/browse/QTBUG-31730
https://bugreports.qt-project.org/browse/QTBUG-32546
https://bugreports.qt-project.org/browse/QTBUG-33053

Works correctly for me under Qt 4.8.4 on Windows, so perhaps that is a fallback option.