Do not use the static convenience functions, they give you a modal dialog.
Connect the textChanged() signal to a slot that will handle the changed value, and call dialog->show(). You can try QInputDialog::open() but I do not know if this gives you a modal or modeless dialog.