jaybstory
3rd February 2010, 06:54
Hello,
I am trying to open a website in a QWebView box in my gui. I have a signal slot connection that states if the "open map" button is clicked, it will go to my omap function which is:
def omap(self):
m = QtWebKit.QWebView(self)
j = QtCore.QUrl('http://www.openstreetmap.org/')
m.setUrl(j)
print j
m.load(j)
however, the website is not loading in the QWebView box. I'm not sure what I am doing wrong here or if this is even the correct way to accomplish what I am doing (trying to have a website embedded in my gui) Any help would be greatful, thank you in advance.
I am trying to open a website in a QWebView box in my gui. I have a signal slot connection that states if the "open map" button is clicked, it will go to my omap function which is:
def omap(self):
m = QtWebKit.QWebView(self)
j = QtCore.QUrl('http://www.openstreetmap.org/')
m.setUrl(j)
print j
m.load(j)
however, the website is not loading in the QWebView box. I'm not sure what I am doing wrong here or if this is even the correct way to accomplish what I am doing (trying to have a website embedded in my gui) Any help would be greatful, thank you in advance.