424 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

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...