pragma Singleton import QtQml QtObject { property var windows: [] function addWindow(window){ if(!window.transientParent){ windows.push(window) } } }