QQuickWindow’s contentItem is not accessible

Bug #1218971 reported by Olivier Tilloy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot Qt Support
In Progress
Medium
Unassigned

Bug Description

When using a Window item in QML and dynamically opening a Dialog (or any other popup type using PopupUtils.open(…)), the popup is parented to the window’s contentItem, which is not exposed in the introspection tree of objects.
This makes it impossible to access the popup from within autopilot tests.

I’m attaching a simple QML example. Run it with `qmlscene -testability test.qml`, run `autopilot vis` alongside, and observe that the dialog is not visible in the tree of objects.

Related branches

Revision history for this message
Olivier Tilloy (osomon) wrote :
Changed in autopilot-qt:
status: New → Confirmed
assignee: nobody → Michael Zanetti (mzanetti)
Olivier Tilloy (osomon)
Changed in autopilot-qt:
importance: Undecided → Medium
Olivier Tilloy (osomon)
Changed in autopilot-qt:
status: Confirmed → In Progress
Changed in autopilot-qt:
assignee: Michael Zanetti (mzanetti) → Thomi Richards (thomir)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.