[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] QWebEngineView triggerPageAction segfaults
From: Florian Bruhin <me () the-compiler ! org>
Date: 2016-12-08 13:29:35
Message-ID: 20161208132935.rdtidsxu7s64pgc5 () tonks
[Download RAW message or body]
This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.
[Attachment #2 (multipart/signed)]
This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.
Hey,
* Rembrand at daxLAB <rembrand@daxlab.com> [2016-12-08 12:12:12 +0100]:
> I can use the triggerPageAcrion from QWebEngineView for some actions
> but not for all. Selecting and deselecting content works as well as
> refresh/reload BUT everything related to an image like the actions:
>
> QWebEnginePage::CopyImageToClipboard
> QWebEnginePage::CopyImageUrlToClipboard
> QWebEnginePage::DownloadImageToDisk
>
> results in a segfault when executed.
Those are intended to be used with a context menu opened.
To be fair, they should probably just print a qWarning and do nothing
instead of segfaulting, but you'd need to report that in Qt's
bugtracker: https://bugreports.qt.io/
> If anybody knows a method to copy an image from QWebEngineview to
> the clipboard (or even download) without a segfault I would be very
> happy.
If it's already open, I wonder if QWebEngineView::toHtml or
toPlainText would give you something useful.
If not, you could also re-download it:
- Maybe the SavePage action does something sensible
- Or use a QNetworkAccessManager to download it independendly from
QtWebEngine
- Some new API will also soon be added to trigger custom downloads:
https://codereview.qt-project.org/#/c/173894/
> Is it possible that this is not implemented in PyQt5?
PyQt is just a wrapper over what Qt provides ;)
Florian
--
http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
I love long mails! | http://email.is-not-s.ms/
["signature.asc" (application/pgp-signature)]
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic