en:qt
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
en:qt [2022/08/25 10:19] – [Menu] roehner | en:qt [2023/05/09 14:50] – [Precondition] 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 Install // | + | To use the modern and powerful Qt library, you need to install the PyQt6 package. To do this, call up the command Install // |
- | Alternatively, you can install the PySide6 package and replace PyQt6 with PySide6 in the Qt template. The Qt template can be found in the configuration under Editor/File templates. | + | In addition, you should |
+ | |||
+ | 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. | ||
+ | |||
+ | If you prefer to work with the shortened forms, you can replace PyQt6 with PySide6 in the Qt template. The Qt template can be found in the configuration under Editor/File templates. | ||
Detailed information about Qt can be found in the [[https:// | Detailed information about Qt can be found in the [[https:// | ||
Zeile 70: | Zeile 74: | ||
==== CheckBox ==== | ==== CheckBox ==== | ||
{{: | {{: | ||
- | A CheckBox may or may not be selected. The boolean method // | + | A CheckBox may or may not be selected. The boolean method // |
Example: | Example: |
en/qt.txt · Zuletzt geändert: 2024/05/07 17:09 von roehner