View Single Post
Posts: 62 | Thanked: 158 times | Joined on Jul 2011 @ Malaysia
#22
Originally Posted by dicksonleong8 View Post
Hmm, can't really understand from the documentation, what it is used for?
Here's an example showing how it works.

Code:
SipAttributes {
        id: sipAttributes
        actionKeyLabel: "Tweet"
        actionKeyHighlighted: true
        actionKeyEnabled: true
}

TextField {
                    id: twitText
                    font.pixelSize: 22
                    width: 350
                    placeholderText: "Write your tweet"
                    platformSipAttributes: sipAttributes
                    maximumLength: 30

                    Keys.onReturnPressed: twitText.closeSoftwareInputPanel();
}
Attached are the screenshot for with and without the SipAttributes. Hope it helps
Attached Images
  
 

The Following 2 Users Say Thank You to cckwes For This Useful Post: