Is it possible to make one main window and many dialogs like pages in stackedwidgets inside this window?
For example: Run app, in main window we have login form and button for log in. When we push button for log in, in main window login form disappear and we have next form with text and buttons. When we one push button we are going to next 'page' with another text and buttons. In every step we can log out and come back to first 'page'.

I tried this with stacked widgets but when we go to next page and then come back, every change that we make on the previous page is still there and i dont know how to 'refresh' that page.

In the other way i tried to do just 3 windows and from 1 invoke 2 and from 2 invoke 3 but i dont know how to do like that: we run 1 window, and from this one we close that window and open second one when we click button like in first example with login, we close second window and opens third and then we want to close third window when we push log out button and open first window. I now how to do: 1window->2window->3window but dont know how to do like this 1window->pushbutton login(close 1 window open 2window)->2window->push button(close 2window open 3window)->3window->push button back/logout(close 3window open 2window/1window).

So, in short way: i cant invoke 1/2 window from 3window even if i include headers from this windows.