Component.onCompleted: {
console.log("Current platform: " + Qt.platform.os);
windowAgent.setup(root.window);
windowAgent.setTitleBar(root);
windowAgent.setHitTestVisible(stayTopButton);
if (root.isOSX)
windowAgent.setSystemButtonArea(macSystemButton);
//root.window.stayTop = true;
}
这样显示不出来调整下WindowStaysOnTopHint 它就出来了