en:qt
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:qt [2022/09/13 19:57] – [CheckBox] roehner | en:qt [2024/05/07 17:09] (aktuell) – roehner | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
===== Precondition ===== | ===== Precondition ===== | ||
- | To use the modern and powerful Qt library, you need to install the PyQt6 package. To do this, call up the command | + | To use the modern and powerful Qt library, you need to install the PyQt6 package. To do this, call up the command // |
- | In addition, you should install the PySide6 package in order to be able to run source code based on it. | + | In addition, you should install the //PySide6// package in order to be able to run source code based on it. |
One of the major changes in PyQt6 is the need to use fully qualified names for enums and flags. For example in PyQt5 and PySide2 you could just write Qt.DecorationRole or Qt.AlignLeft. This shortened form no longer works in PyQt6, you now have to write Qt.ItemDataRole.DisplayRole or Qt.Alignment.AlignLeft. This change affects all enums and flag types in Qt. Both long and short names are still supported in PySide6. | One of the major changes in PyQt6 is the need to use fully qualified names for enums and flags. For example in PyQt5 and PySide2 you could just write Qt.DecorationRole or Qt.AlignLeft. This shortened form no longer works in PyQt6, you now have to write Qt.ItemDataRole.DisplayRole or Qt.Alignment.AlignLeft. This change affects all enums and flag types in Qt. Both long and short names are still supported in PySide6. |
en/qt.1663091834.txt.gz · Zuletzt geändert: 2022/09/13 19:57 von roehner