[PyQt] Two QWebView == Segfault?
Hans-Peter Jansen
hpj at urpla.net
Mon Feb 28 21:07:32 GMT 2011
On Sunday 27 February 2011, 20:53:16 Robert Siemer wrote:
> siemer at eee:~$ python
> Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
> [GCC 4.4.5] on linux2
> Type "help", "copyright", "credits" or "license" for more
> information. ~/.pystartup loaded.
>
> >>> from PyQt4 import QtWebKit, QtGui
> >>> q = QtGui.QApplication([])
> >>>
> >>> wv = QtWebKit.QWebView()
> >>> wv2 = QtWebKit.QWebView()
> >>> wv.setHtml('hallo')
> >>> wv2.setHtml('hallo2')
> >>> Segmentation fault
>
> siemer at eee:~$ j
Well, not here:
~> python
Python 2.6 (r26:66714, Feb 8 2011, 08:50:11)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4 import QtWebKit, QtGui
>>> q = QtGui.QApplication([])
>>> wv = QtWebKit.QWebView()
>>> wv2 = QtWebKit.QWebView()
>>> wv.setHtml('hallo')
>>> wv2.setHtml('hallo2')
>>> wv.show()
>>> wv2.show()
>>> q.exec_()
0
python: 2.6
sip: 4.12.1
qt4: 4.6.3
pyqt4: snapshot-4.8.4-278054fd857c
Pete
More information about the PyQt
mailing list