I have a custom made login form in Python, which launches on QGIS startup. But before the user has a chance to enter the credentials, the program starts normally, bypassing the form. From then on the user can interact with QGIS like the form isn't even there (which defeats the purpose of the form!! ).

Is there a way to halt QGIS startup until the user is authenticated?

  • How are you loading QGIS? In your form or are you loading QGIS first then showing the form?
    – Nathan W
    Feb 13, 2014 at 9:29
  • First QGIS and then the form
    – GsetIT
    Feb 13, 2014 at 9:58

2 Answers 2


I figured it out. All I had to do was QDialog.setModal(true) so the user can't interact with QGIS before interacting with the form (logging in) and QDialog.setWindowFlags(QtCore.Qt.FramelessWindowHint) so the user can't close the form


emphasized textYou must call the method run on def init(self, iface): it works well try it...i hope it'll help!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.