import QtQuick 2.11 import QtQuick.Controls 2.3 import QtQuick.Controls.Material 2.0 import QtQuick.Layouts 1.3 BasePopUp { id: pagePopUp property var source: null autoClose: false Item { id: sourceVal anchors.fill: parent } onSourceChanged: { if (!source) return; source.parent = sourceVal; source.anchors.fill = sourceVal; } x: parent.width / 2 - width / 2 y: parent.height / 2 - height / 2 }