Add List and ListItem using QListWidget and QListWidgetItem#364
Add List and ListItem using QListWidget and QListWidgetItem#364a7ul merged 1 commit intonodegui:masterfrom
List and ListItem using QListWidget and QListWidgetItem#364Conversation
```
<List>
<ListItem text="NodeGui is great" />
<ListItem text="This item has a child">
<View>
<Text>Hello World</Text>
</View>
</ListItem>
</List>
```
|
Looks good 👍🏽 Thanks |
|
How is ListItem laid out in a List?How to use FlexLayout? |
I found it tricky to use It is a bit cumbersome to discover these things, and it is quirky. But it is the nature of assuming how things work on the web, but this project is trying to marry it to Qt, which has its own way of doing things. In this case |
|
Basically List will use QListWidget.setItemWidget with the child of the QListWidgetItem to tell the QListWidget how to display each child. That is how the sample code works, a flex View with Text child. I don't understand.For a View, who is the Flex container?List or ListItem?Can you give me an example with FlexLayout? |
Can be used like this: