How to create login screen which holds focus until the user has logged in

How to create a login screen which holds focus until I have logged in succesfully. So basicly I have one widget which is disabled and shouldn't react on clicking and another which should hold the focus. I am using Qt.
Who is Participating?
Deepu AbrahamR & D Engineering ManagerCommented:
A modal dialog will serve your need

//Handle your code here..

Best Regards,
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.