0
私は初心者で、コードの行をPyQT4からPyQT5に変更するのが難しく、そのシグナルは&スロットです。私は議論がスロットに渡されているからだと思う。PyQt5からのシグナルコードをPyQt4から変換する
オリジナルラインは:
self.connect(self.assetView.selectionModel(), SIGNAL(("currentRowChanged(QModelIndex,QModelIndex)")),self.assetChanged)
私が試した:
self.assetView.selectionModel.currentRowChanged(QModelIndex,QModelIndex).connect(self.assetChanged)
と私が手:AttributeError: 'builtin_function_or_method' object has no attribute 'currentRowChanged'
self.assetViewはQTableViewで、self.assetChangedはDEFがあります
def assetChanged(self, index):
は、任意の助けに感謝