Hello
I work on an application under qt 5,
The user must first choose whether it is a doctor or patient or administrator
la2.PNG
After another window will be opened to connect or register
mainwindow.PNG
If it clicks on join I want another window will be opened but depending on the type of user.
mainwindow.cpp
join_connect.cpp


So please what can I do to I open a window according to the type chosen in mainwindow