Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Is there an easy way to copy a QWebFrame?
thebeast44 last edited by
What I have at the moment is a QWebPage that shows the book contents of an EPUB file.
So what I'm thinking is to make a copy of the original webview and do all the dirty work there.
I could always load the EPUB contents from the file again into a new QWebView, but that could take a while so I'm looking for some kind of alternative.
Here's what I've been doing:
- Realized that 'copying' a Q_OBJECT is not a recommended practice.
- Looked into 'Implicit Sharing' but didn't really understand the concept.
- Tried to use QWebFrame::toHtml() and QWebFrame::setHtml() to copy the contents
- which failed because the contents seemed to get trauncated somewhere along the line