[PyQt] Problem with QWebView
amicitas at gmail.com
Fri Apr 10 07:08:41 BST 2009
Does anyone have any ideas on this? I would like to report this as a
Qt bug if that is appropriate. However, I would like to make sure
that this is not a PyQt or a problem with my code. I am not very
familiar with programing in C++, so it might take me a long time to
investigate whether or not this a PyQt issue on my own.
At this point I am using PyQt 4.4.4 with Python 2.6.1.
On Sun, Apr 5, 2009 at 1:38 PM, mir amicitas <amicitas at gmail.com> wrote:
> I am having an issue with QWebView. If I use a QWebView, then after I
> close my application I get the following error:
> QWaitCondition: Destroyed while threads are still waiting
> This error only comes up if I actually load a web page (with either
> load() or setUrl()).
> What am I doing wrong here? Do I need to explicitly call something to
> destroy the QWebView widget?
> # Main application class.
> def showHelpDialog(self):
> help = HelpWindow(self)
> class HelpWindow(QtGui.QMainWindow):
> def __init__(self, parent):
> QtGui.QMainWindow.__init__(self, parent)
> self.setWindowTitle('TrackChanges Help')
> help_browser = HelpWebBrowser(self)
> class HelpWebBrowser(QtGui.QWidget):
> def __init__(self, parent=None):
> QtGui.QWidget.__init__(self, parent)
> # We load this on the fly to reduce memory footprint.
> from PyQt4 import QtWebKit
> self.browser_main = QtWebKit.QWebView(self)
> url_main = QtCore.QUrl('http://qtsoftware.com')
> # Set the layout
> main_layout = QtGui.QHBoxLayout()
More information about the PyQt