Results 1 to 8 of 8

Thread: Flash, PDF and plugins

  1. #1
    Join Date
    Apr 2013
    Posts
    65
    Thanks
    4
    Thanked 3 Times in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Question Flash, PDF and plugins

    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:

    1.jpg

    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
    Last edited by brcontainer; 19th August 2013 at 17:23. Reason: add image

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Adobe Flash and Adobe Reader

    It is hard to make out from what you wrote what you really mean. Consider rewriting your post in a more descriptive way.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2013
    Posts
    65
    Thanks
    4
    Thanked 3 Times in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Adobe Flash and Adobe Reader

    I edited. Could you help me? Thanks.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Flash, PDF and plugins

    How are "Qt widgets" related to the web view?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Apr 2013
    Posts
    65
    Thanks
    4
    Thanked 3 Times in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Flash, PDF and plugins

    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.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Flash, PDF and plugins

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Apr 2013
    Posts
    65
    Thanks
    4
    Thanked 3 Times in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Question Re: Flash, PDF and plugins

    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.

    4.jpg

    Maybe a bug in QT.

    Example (bin and source):
    http://www.mediafire.com/download/uk...ewexample2.zip
    Last edited by brcontainer; 20th August 2013 at 03:34.

  8. #8
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Flash, PDF and plugins

    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.

Similar Threads

  1. QProcess + Adobe Reader+ go to page
    By solook in forum Qt Programming
    Replies: 1
    Last Post: 25th July 2013, 04:15
  2. Qt GUI interface like Adobe Acrobat Reader
    By indianinside in forum Qt Programming
    Replies: 14
    Last Post: 28th June 2012, 19:32
  3. Exported PDF Drawing Error in Adobe Reader
    By BettaUseYoNikes in forum Qwt
    Replies: 0
    Last Post: 15th November 2011, 17:58
  4. link to a pdf for opening it wit adobe reader
    By szisziszilvi in forum Newbie
    Replies: 1
    Last Post: 29th August 2011, 13:31
  5. Runing inline evice/adobe reader
    By deimus in forum Qt Programming
    Replies: 2
    Last Post: 30th June 2010, 08:19

Tags for this Thread

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.