Hi,
for a configuration dialog (which supports country specific configurations i would
like to create contry sepecif configuration components that can be displayed
depending on the selected country - since the country specific configuration can be
quite different. Originally (before the externalization) the code looked like this:
Settings.qml
Page {
SilicaFlickable {
Column {
PageHeader {}
SectionHeader {}
ComboBox {} // to select country
// next 3 Elements shall be moved to a separate component
// they depend on selected country in the ComboBox above
ComboBox {}
ListModel {}
ComboBox {}
// end
ComboBox {}
}
}
}
After externalizing the SettingsGermany component the settings page
is supposed to like like this - the specific configuration for germany is now
contained in a new encapsulated component SettingsGermany
Settings.qml - with using externalized components
Settings.qml
Page {
SilicaFlickable {
Column {
PageHeader {}
SectionHeader {}
ComboBox {} // to select country
// the 3 elements are now inserted as new component
SettingsGermany{}
ComboBox {}
}
}
}
The three Element for the configuration are now in a new Component which
is included in the settings page.
SettingsGermany.qml
Item {
ComboBox {}
ListModel {}
ComboBox {}
}
The problem now is that the Page is not rendered properly the two combo boxes and the list model are not properly added to the Column in the SilicaFlickable where they are inteneded to be displayed. they are all displayed at the very top of the page above one another.
How can i externalize the 3 Elements to a new component (seprate file) - and include to a Column within a SilicaFlickable so that the elements of the component are rendered properly?
Or is there a better way to externalize and include country specific configuration?
Thanks in advance.