Important: Please read the Qt Code of Conduct -

Border for Qml Text Type

  • Hi all,

    I want to define dynamically border for Text in Qml. I do not want to use Rectangle. Can it be done by defining a style? If I did not apply the wrong method, I tried but it did not work.


  • @aktay

    1. Why are you hesitant on using rectangle as your text border?
    2. I think style property of Text cannot do this. Style can take enum value.

    Also, putting up minimal code always helps us in understanding what exactly you are trying to achieve?

Log in to reply