def getVersion(self, index): version = QSystemInfo.Version() if index == 0: self.versionLineEdit.setText("") elif index == 1: version = QSystemInfo.Os elif index == 2: version = QSystemInfo.QtCore; elif index == 3: version = QSystemInfo.Firmware si = QSystemInfo() self.versionLineEdit.setText(si.version(version))
def getVersion(self, index): version = QSystemInfo.Version() if index == 0: self.versionLineEdit.setText("") elif index == 1: version = QSystemInfo.Os elif index == 2: version = QSystemInfo.QtCore elif index == 3: version = QSystemInfo.Firmware si = QSystemInfo() self.versionLineEdit.setText(si.version(version))
def testSystemInfo(self): sysInfo = QSystemInfo() self.assertEqual(sysInfo.version(QSystemInfo.QtCore), QtCore.__version__)