2012-04-02 85 views

回答

0

我有同样的问题了Qt 5.3

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

这里是我的代码:

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