I have observed one more issue in my code after implementation, actually switching b/w each window that is Basic and mainwindow is adding some extra size in memory .
for example assume basic window is launched by default , and then i will switch to MainWindow and then i will switch back to basic window like that...., please find the memory consumption in task manager.
Basic Window - 160 Mb
Main Window - 200 Mb
Basic Window - 170 Mb
Main Window - 210 Mb
Basic Window - 180 Mb
Main Window - 220 Mb
Basic Window - 190 Mb
Main Window - 230 Mb
It will keep on increase while switching until we close and reopen.
Whereas in CPP side both consumes almost same data. But UI is little more graphical representation in main window at qml side.
Where as above memory readings are taken by only pressing switching button in both the windows, and no cursor playing or keyboard playing on the window anywhere apart from switching button.
for each switching i have taken 5 seconds break until memory comes and settle down with some fixed value.

So I thought the memory consumption is increasing since i am not clearing some caches, so then I started consuming trimComponentCache() or clearComponentCache() in
both the functions loadBasicWindow() and loadMainWindow() I have added this cache clearing functions immediately after destroyed(), even after that result is same.

It should remain same b/w each switching. Suppose if the user performing any action in Basic or Advance window then we can say yes memory increases during some action . If we keep it idle it will come back to idle memory.
Requesting to help me in fixing this memory issue which I can see in task manager.