コード例 #1
0
ファイル: dialog.py プロジェクト: lauromoura/PySide-Examples
    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))
コード例 #2
0
ファイル: dialog.py プロジェクト: massari100/pyside2-examples
    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))
コード例 #3
0
 def testSystemInfo(self):
     sysInfo = QSystemInfo()
     self.assertEqual(sysInfo.version(QSystemInfo.QtCore), QtCore.__version__)