Hello!!
In my Firebase Database I have a section of groups (groups/location1 — groups/location2 — groups/location3 ect ect) I want the contents of a dropdown ComboBox to be the locations taken from my database groups area, to assign users to on registration, how would I fill the list with the locations? at the moment I am using a standard comboBox (see code)
Quick2.ComboBox {
id: combobox
visible: registerCheckbox.checked ? true : false
Layout.preferredWidth: dp(200)
padding: dp(12)
model: ["location1", "location2", "location3", "location4", "location5"]
delegate: Quick2.ItemDelegate {
width: combobox.width
height: combobox.height
padding: dp(12)
contentItem: AppText {
text: modelData
color: highlighted ? Theme.tintColor : Theme.textColor
wrapMode: Text.NoWrap
}
highlighted: combobox.highlightedIndex == index
}
contentItem: AppText {
width: combobox.width - combobox.indicator.width - combobox.spacing
text: combobox.displayText
wrapMode: Text.NoWrap
}
}