QML - How to change TextField font size -


How can I determine the font size of the TextField element in QML? Want to resize the placeholder text and also for the text that the user enters.

I tried without any luck!

  Textfield {id: name_TextField; Horizontal Alliance: Text. Layout. Preferred Width: Parenchair Wideth * 0.90; Layout. Preview: 50 Style: TextFileStyle {font.pixel Size: 20 /} This does not seem to work either placeholder text: qsTr ("Your name is here")}  

You can use the style property to customize your TextField Are there. For example:

  textfield {style: TextFieldStyle} {font.pixel size: 14}}  

I tried to do it and it works like a magic


Comments

Popular posts from this blog

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -