GammaRay icon indicating copy to clipboard operation
GammaRay copied to clipboard

Fixing Bug where a childs in child in a zero size element are not found.

Open 53845714nF opened this issue 1 year ago • 3 comments

I have the Problem by using the Picker, they didn't find elements in elements in a element which are zero size.

For example:

import QtQuick 2.15
import QtQuick.Window 2.15

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Minimal Pick Fail")

    Rectangle {
        id: zerosizereact1
        width: 0
        height: 0

        Rectangle {
            id: zerosizereact2
            width:0
            height: 0

            Rectangle {
                id: greenrectangle
                width: 100
                height: 100
                color: "green"
            }
        }
    }
}

When I click the green rectangle, the Picker chose the hole screen as Element. grafik

53845714nF avatar Mar 21 '24 11:03 53845714nF

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Sebastian Feustel seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Mar 21 '24 11:03 CLAassistant

Does the failed test have something to do with me? I don't see what's the problem.

53845714nF avatar Mar 21 '24 12:03 53845714nF

Does the failed test have something to do with me? I don't see what's the problem.

It's just a faulty test, sorry. I did re-run the failed pipeline so now it's all green

redstrate avatar Mar 21 '24 16:03 redstrate

I have added the changes.

53845714nF avatar Mar 22 '24 10:03 53845714nF

Okay, thanks.

Waqar144 avatar Mar 22 '24 11:03 Waqar144