Kirigami.Page breaks with Loader+Component inside

Aleix Pol aleixpol at kde.org
Mon Apr 11 10:07:24 UTC 2016


On Mon, Apr 11, 2016 at 10:44 AM, Marco Martin <notmart at gmail.com> wrote:
> On Monday 11 April 2016, Martin Klapetek wrote:
>> Hey,
>>
>> so I've ported SpaceBar to Kirigami and got stuck with Page
>> not rendering anything when it contains a Loader.
>>
>> I've reduced it to a minimal example, attached, where it is
>> easily reproducible.
>>
>> Running the attached qml file will show an empty page, removing
>> the Loader _and_ Component will show the green rectangle.
>> Changing the Page to say, an Item, shows both Rects.
>>
>> This was working before and I have tried to look into it, but couldn't
>> figure out what's up with that.
>>
>> Can somebody have a look?
>
> i think i know why this happens (actually the problam at the moment is that
> page can only have 1 child)
> it should be changed to allow a list of children as any other item
>
> this patch on page should fix stuff
> https://paste.kde.org/prkp1my8o

Or this patch, please review:
https://phabricator.kde.org/D1363

Aleix


More information about the Plasma-devel mailing list