The title may be confusing but this is what i want to do: I have a button on a dialog that when clicked, i want a small window to popup where i can enter a code that is returned back to the calling dialog. I know that i can build a small QT model, with a small data entry and have it close when pressing the enter key. But is there any other way to do this on the fly?