The password can be extracted from a QLineEdit configured as a password field from a running qt application using GammaRay.
I tested it with Qt 5.10.1 but i expect it to probably work also with newer versions.
See Screenshot: