qtclient: implementation of modal dialogs (work in progress)