How to close first windows , and open different window but in the same application (like Skype)
Until now I was developing Qt MainWindow and always stay in this window , changing the content with QStackedWidget
But now I need to do something like to skype , the flow is
user open first window the login window after successful login , the window closes
And new different window opens with the user friends , now maybe it’s the same first window
That changed its look totally .. I don’t know.
How I manage this in Qt ?
Using event loop. Use exec() for different windows. :)
is there some example in the examples to do it right ?
Just close the window and open a new one? What's the problem with that?
And don't forget to set quitOnLastWindowClosed as false.