KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am learning PyQT programing, and when I try a simple test, I get Segmentation fault, here is my code pop.py: #! /usr/bin/python import sys from PyQt4.QtGui import QApplication from PyQt4.QtCore import QUrl from PyQt4.QtWebKit import QWebView app = QApplication(sys.argv) v = QWebView() v.load(QUrl("http://127.0.0.1/j.html")) v.show() app.exec_() I started an Apache server at 127.0.0.1 for testing. And here is j.html: <html><script>alert("I am here");</script> <body>Hello World</body> </html> I start the pop.py, open a window, javascript popup alert dialog, I click the OK, then pop.py will quite and get "Segmentation fault" I tried PySide, get same result. If not JS alert in html, will be OK. Is this a bug of QT or I missed something? I worked on Debian with python 2.6.6, python-qt4 4.8.3, libqtwebkit4 2.1.0 I also tried Fedora 15 with PyQt4-4.8.3, python 2.7.1, same issue Any suggestion, clue for searching will be helpful. Thanks
Tags (comma-separated)
Save Edits
Cancel