Mixing Qt Quick Controls 1.x and 2.x
-
Hi,
Qt 5.6 will contain a technology preview of the Qt Quick Controls 2 which are much more lightweight than the 1.x controls.
Will it be possible to mix 1.x and 2 controls in the same Qml file? There will be definitely naming overlaps (for instance the type "Button" will very likely be available in both versions). How are these handled?Greetings,
-
If both modules are installed you can import them by name
import Module 1.0 as M1 import Module 2.0 as M2 Item{ M1.Button{ } M2.Button{ } }