[PyQt] Embedding QWidgets within a parent
Chris Wood
c.c.wood at gmail.com
Thu Apr 24 19:29:47 BST 2014
If I have a standalone widget, what's the best way to integrate (/embed) it
within a QMainWindow / parent QWidget? I know that a QScrollArea has a
setWidget method - but is there a better / lower level / more abstract way
of achieving it?
(In my particular case, I'm using QtWebKit; using this answer (
http://stackoverflow.com/a/13386109/889604) as a starting point, I'd like
to embed 'view' (which is an instance of Browser) into a parent QWidget.
I'd like to think that because QWebView inherits QWidget, this should be
easy(!))
Thanks in advance,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140424/b7f2b627/attachment.html>
More information about the PyQt
mailing list