self.setText("")
QTimer.singleShot(1500, self.sliceUpdateDate)
+
class MainWindow(QWidget):
def __init__(self, parent=None):
QWidget.__init__(self, parent)
model.emit(SIGNAL("dataChanged(QModelIndex, QModelIndex)"), hostname_index, hostname_index)
- def mouseReleaseEvent(self, event):
- index = self.currentIndex()
- model = index.model()
- hostname_index = model.index(index.row(), 1, index.parent())
+ def currentChanged(self, current, previous):
+ model = current.model()
+ hostname_index = model.index(current.row(), 1, current.parent())
hostname_data = hostname_index.data().toString()
-
self.emit(SIGNAL('hostnameClicked(QString)'), hostname_data)