Qml Tutorials Part 7 || Text

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Hey Joseph, thank you again.. you're a good teacher because you have a relaxed presentation style, if that makes sense.  You are really bringing the QML to life here.  It's cool, but can be so dry when you're first getting started as you know.  So thanks for making it so much more pleasant for us.  I've learned a lot of languages over the years and am getting a little tired.  But thanks to you, this old dog may still learn some new tricks.  lol

vccranker
Автор

Good tutorial thanks for bring it to the people!

gregoirej.
Автор

Well, the problem you have their with the text being shown on the left when you explicitly specified the width of the Text item is that the layout is supposed to center the Text Item in the blueRec Item but both of them has same width so they will be positioned in the same place. Also because string is by default left aligned in its  Text item dimension you see this result so to fix it you can use
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
also some times width can be too small but height increases this will make text appear outside of Text dimensions item so using this would fix it too
fontSizeMode: Text.Fit

karimtarabishy
Автор

Hello Joseph nice work dude. Take my like and thx a lot for your help :)

Uemlue
Автор

I've just installed the sdk of ubuntu and your tutorial helps, but it doesn't work exactly as you say. Anyway it helps, thank you

azbycxdw