Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Group - error or lack of understanding #6

@KimBP

Description

@KimBP

Say I want' to make a Group into which I'll assign some objects.
I'd expect this is the way to do it:

auto myWidget = lvgl::widgets::someWidget(lvgl::core:scr_act());

auto myGroup = lvgl::core::Group();
myGroup.add_obj(myWidget);

This seems not to work, because myGroup has never created an lv_obj (aka lv_group_t)

So when lv_group_add_obj() is called it will immediately return because provided group was NULL.

It seems like lv_group_create() ought have been called somewhere - or am I missing something?

From what I can see it will work doing

auto myGroup = lvgl::core::Group(lv_group_create());

but that's not so nice. Ought we add a default constructor internally making this call?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions