[Interest] QML: ApplicationWindow's child strange parent

Nils Jeisecke nils.jeisecke at saltation.com
Fri Jan 14 12:45:05 CET 2022


Hi,

On Fri, Jan 14, 2022 at 12:35 PM Alexander Dyagilev <alervdvcw at gmail.com> wrote:
> What does it mean? Why parent is NOT appWindow? Isn't it should be?
> Is it a bug? Am I missing something?

see https://doc.qt.io/qt-5/qml-qtquick-controls2-applicationwindow.html#contentData-prop

"If you assign an Item to the contentData list, it becomes a child of
the window's contentItem, so that it appears inside the window. The
item's parent will be the window's contentItem."

Nils


More information about the Interest mailing list