I'm developing a Web Browser、ここQWebViewsを作成するコードの一部です:QWebViewでマウスボタンが押されたかどうかを検出する方法は?
def compose_tab(self, index):
self.tabs[index].append(QtWebKit.QWebView())
self.tabs[index][0].setLayout(self.tabs[index][1])
self.tabs[index][1].addWidget(self.tabs[index][2])
self.tabs[index][2].connect(self.tabs[index][2], QtCore.SIGNAL("linkClicked(const QUrl&)"), self.update_link)
self.tabs[index][2].load(QtCore.QUrl("http://www.google.com"))
self.url_field.setText("http://www.google.com")
私は、マウスボタンがQWebViewに押されたときを検出します。