Skip to content

Conversation

@roundedrectangle
Copy link
Contributor

I needed to implement dynamic tabs loading in my app. I found that it could actually be easier to specify the tab item source by URL instead of a Component. This PR adds support for this.

Additionally, I found that it is easier to put a simple QML ListModel for the model property for loading tabs dynamically. Current code requires the data to be accessable from modelData property (which is the case for current system used, for example, in gallery). This PR keeps this but uses properties directly from model if modelData doesn't work.

Useful if a custom model (like ListModel) is used instead of itemContainer.data, for example, if tabs are added dynamically, like here: `<listModel>.append({..., source: Qt.resolvedUrl(...)})`
previously it would still be possible, but every iitem would need to have all actual data under the 'modelData' field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant