Take a look at QInputDialog. It may not be exactly what you want, but it will do the job with no work on your part except to call it and retrieve the value. Unlike an entry-only window, it does give the ability to cancel the input in an obvious way (by clicking a Cancel button). With a simple window, you'd need to define a custom key sequence (Esc or something) that signifies "cancel this input".