Is it possible to do what MohammadAG suggested on page 4 of this thread? http://talk.maemo.org/showpost.php?p...1&postcount=39 It seems like it should be reasonably doable - Qt must surely have some way of detecting if the window at the 'top' is in landscape or portrait? This way, if you're in landscape, you can just do what you're doing now - but if you're already in portrait, can't it just skip the bit of code quoted by Mohammad, thus skipping the portrait-landscape-close-vkb-portrait-again dance? (So long as you do the initial check BEFORE deploying the VKB - that way any rotations of all of hildon that are done while the keyboard is open don't affect the value.)