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

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -