PopupType::Default was meant as a way for a developer to let Qt choose the best popup type, based on the run-time (or build-time) environment. But this could also be achieved by just setting the default value of popupType already in the popup constructor (or when resetting popupType) to either Item, Window, or Native, based on the same information. The difference is that the popupType cannot always be decided before the popup is about to open. A menu, for example, can be reparented at run-time into another menu, or into a native menubar. And then the effective popup type needs to be the same as the parent. But this will always be the case, even if the popupType is explicitly set to something else than PopupType::Default. So, at the end of the day, setting popupType to Window or Native should be understood as a hint (or preference). And this might or might not be respected, based on platform capabilities and the run-time state of the application. And leaving it unspecified will give you what is recommended on the platform by default, run-time considerations aside. As a result, PopupType::Default can therefore be removed, since it doesn't offer any extra logic on top of that. Pick-to: 6.8 Change-Id: I174ba70b6553e7fb867d68aa4593eb6cc23aefd3 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> |
||
---|---|---|
LICENSES | ||
cmake | ||
coin | ||
dist | ||
examples | ||
features | ||
src | ||
tests | ||
tools | ||
.cmake.conf | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.tag | ||
CMakeLists.txt | ||
README.md | ||
configure.cmake | ||
dependencies.yaml | ||
qt_cmdline.cmake | ||
qtdeclarative.doxy |
README.md
qtdeclarative
The qtdeclarative repository is home to QML, Qt Quick and several related modules:
- Qt QML
- Qt QML Core
- Qt QML Models
- Qt QML WorkerScript
- Qt QML XmlListModel
- Qt Quick
- Qt Quick Controls 2
- Qt Quick Layouts
- Qt Quick Local Storage
- Qt Quick Particles
- Qt Quick Shapes
- Qt Quick Templates
- Qt Quick Test
In addition, there are several Qt Labs modules: