32 views
in GUI Development by

I created an item with an image and text,

 on the other page I had intended to have more appear dynamically and quickly using init and writing code, you can create more items without rewriting :
var Application::LedItem item1 = new Application::LedItem;
Add( item1, 0 );

 

I need to use maybe more property and a slot method?

 

 

1 Answer

0 votes
by

Hello VonMartello,

If your intention is to create more items, then you will need to repeat the code, for example in a for loop. See the section Compose the component programmatically, it shows a for loop to create 10 rectangle views. Similarly your own items should be created.

If your application case is creating a list of items, following could also be helpful for you:

Managing scrollable contents: Vertical List

Creating components from templates: Menu

Best regards

Paul Banach

Embedded Wizard Website | Privacy Policy | Imprint

...