|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by dipm in Python Scripting Language, QT Programming Language
I have the following *very* simple web viewer. I need it to show just a single internal site, however that site has a self-signed certificate which causes it not to load. I know there's a way to use ignoreSslErrors with QNetworkManager, but I have been killing myself and cant figure out how to code it with what I have below. Please help :P
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
|
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *
from PyQt4 import QtGui
app = QApplication(sys.argv)
web = QWebView()
web.setWindowTitle("title")
screen = QtGui.QDesktopWidget().screenGeometry()
web.resize(screen.width()-10, screen.height()-60)
size = web.geometry()
web.move((screen.width()-8-size.width())/2, (screen.height()-60-size.height())/2)
web.load(QUrl("https://site-with-self-signed-certificate.com/"))
web.show()
sys.exit(app.exec_())
|
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625