Choose QtQuick.Controls 1.4 for CheckBox
-
Hi all
I have qml window with TableView (QtQuick.Controls 1.4), but I want ToolTip also (QtQuick.Controls 2.0)
but I have few CheckBox and ComboBox components on my form too.
So question is possible choose CheckBox and ComboBox from QtQuick.Controls 1.4 to use on my form or no?
Qt 5.7.
thanks -
You can use delegate in each of the columns of TableView
TableViewColumn{role : "showme";title :"Select";width:80;
delegate: CheckBox{}
} -
You can use delegate in each of the columns of TableView
TableViewColumn{role : "showme";title :"Select";width:80;
delegate: CheckBox{}
}hi @dheerendra
thank you for answer
yes I'm use delegate item, something like this
but problem that this CheckBox is from Controls 2.0 but I want CheckBox from Controls 1.4
is this possible?Component { id: cbdDeploymentStatus CheckBox { // this check box from Controls 2.0 // but I want, Contorol 1.4 // is this possible? } }
-
Try something like this ?
import QtQuick 2.6
import QtQuick.Window 2.2
import QtQuick.Controls 2.0
import QtQuick.Controls 1.2 as Controls12Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")Controls12.CheckBox { text : "Hell20" } CheckBox{ x : 100 text : "Hell20" } Text { text: qsTr("Hello World") anchors.centerIn: parent }
}
-
Try something like this ?
import QtQuick 2.6
import QtQuick.Window 2.2
import QtQuick.Controls 2.0
import QtQuick.Controls 1.2 as Controls12Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")Controls12.CheckBox { text : "Hell20" } CheckBox{ x : 100 text : "Hell20" } Text { text: qsTr("Hello World") anchors.centerIn: parent }
}
hi @dheerendra thanks for answer
yep I try this
but take error "Invalid import qualifier ID" with such instruction -
Did u try my sample. Did that work ?
-
Did u try my sample. Did that work ?
hi @dheerendra
yep it's work!!! great
but I try this by myself yesterday, but nothing work))
are you wizard?))
thank you -
@dheerendra said in Choose QtQuick.Controls 1.4 for CheckBox:
as Controls12
Alias should start with upper case
import QtQuick.Controls 1.4 as Controls12 // work
import QtQuick.Controls 1.4 as controls12 // not work