开发者

QWebView mailto problem

I'm using the QWebView element in a PyQt application and mailto lin开发者_如何学Goks do not seem to work. When I click on them nothing happens and the default mail client does not open.

Pointers on fixing this problem will be very much appreciated.

Thanks.


try this

self.connect(webview, QtCore.SIGNAL( " linkClicked ( const QUrl & ) "), self._link_clicked)

you could do open mail client in self._link_clicked

see also http://doc.qt.io/qt-4.8/qwebview.html#signals

BTW, PySide is better than PyQt, the former is more Pythonic.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜