ference
ference

Reputation: 23

How to set the returnKeyType of TextInput in qt5.6 qml

I saw Qt added the EnterKey QML type at v5.6, but how to use it in a TextInput?

Upvotes: 1

Views: 153

Answers (1)

jpnurmi
jpnurmi

Reputation: 5836

import QtQuick 2.6

TextInput {
    EnterKey.type: Qt.EnterKeyNext
}

Upvotes: 2

Related Questions