I guess the bug Metalist reported is due to this Code: #if defined(Q_WS_MAEMO_5) //If not landscape, need to return to landscape view if(m_sCurrOrientation.compare(Core::ORIENTATION_LANDSCAPE) != 0) { setAttribute(Qt::WA_Maemo5LandscapeOrientation, true); hide(); showMaximized(); } #endif Maybe you could check if the window that requested the keyboard has HILDON_PORTRAIT_MODE_SUPPORT set on it? If it doesn't, do that part of the code, else, skip and hide().
#if defined(Q_WS_MAEMO_5) //If not landscape, need to return to landscape view if(m_sCurrOrientation.compare(Core::ORIENTATION_LANDSCAPE) != 0) { setAttribute(Qt::WA_Maemo5LandscapeOrientation, true); hide(); showMaximized(); } #endif