2012-04-02 75 views

回答

0

我有同樣的問題了Qt 5.3

我在網上找到了解決方案: http://qt-project.org/forums/viewthread/32152

這裏是我的代碼:

TextInput { 
    // ... 
    onAccepted: { 
     console.log("onAccepted"); 
     Qt.inputMethod.hide(); // hide the keyboard 
    } 
}