开发者

QWebView mailto problem

开发者 https://www.devze.com 2023-03-05 01:14 出处:网络
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

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

精彩评论

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

关注公众号