1800 # check version of Qt |
1800 # check version of Qt |
1801 # =================== |
1801 # =================== |
1802 qtMajor = int(qVersion().split(".")[0]) |
1802 qtMajor = int(qVersion().split(".")[0]) |
1803 qtMinor = int(qVersion().split(".")[1]) |
1803 qtMinor = int(qVersion().split(".")[1]) |
1804 print("Qt6: {0}".format(qVersion().strip())) |
1804 print("Qt6: {0}".format(qVersion().strip())) |
1805 if qtMajor == 6 and qtMinor < 1: |
1805 if qtMajor == 6 and qtMinor < 2: |
1806 print("Sorry, you must have Qt version 6.1.0 or better.") |
1806 print("Sorry, you must have Qt version 6.2.0 or better.") |
1807 exit(2) |
1807 exit(2) |
1808 |
1808 |
1809 # check version of sip |
1809 # check version of sip |
1810 # ==================== |
1810 # ==================== |
1811 with contextlib.suppress(ImportError, AttributeError): |
1811 with contextlib.suppress(ImportError, AttributeError): |