Solved Choose item library
-
Hi,
In QtQuick, the CheckBox item is present in two libraries QtQuick Controls and in Qt Labs Controls.
How choosing the good one when declaring a new CheckBox in QML?
Thank you
-
-
Thank you for that explanation.
However, if I want use CheckBox from the two libraries in a single QML file, it exists a way to assign the good one? -
@RomanoFX You can use Alias'es using
as
. For eg:import QtQuick 2.5 import QtQuick.Controls 1.4 as Desktop import Qt.labs.controls 1.0 as Embed Item { width: 200 height: 200 Desktop.CheckBox { checked: true text: "Desktop" } Embed.CheckBox { y: 50 checked: false text: "Embedded" } }