[Solved] N950 QML element problem
-
Hello, I have received today the N950 kit so I will testh the framwork Qt-Complex for N9 (need the physical device) asap and will update you on the results.
-
@wrapMode: Text.WordWrap
anchors.rightMargin: 1
anchors.leftMargin: 1
anchors.topMargin: 1
anchors.bottomMargin: 1
anchors.fill: parent
font.pixelSize: 12
@Hi, I am not so convincted to this anchoration method. Please can you explain what you want exactly? I had problems with text anchored by all sides when the text is wordwrap. This is because you can't know a-priori when and where the text is broken.
Try to remove the margins one step at a time to see how the behavior changes. Wordwrap is very useful but has some problems. I have also experienced that it can no be anchored to the bottom because its bottom does not exist. -
[quote author="Alicemirror" date="1311181045"]I have also experienced that it can no be anchored to the bottom because its bottom does not exist.
[/quote]
Thank you. You are right. I should remove the bottom anchor. I will check the anchors again but my question is why does it work perfectly with N8 and not with N950? -
This software if open? can you post a working piece somewhere so I can test? Do you have the emulator of the device ?
-
THANK YOU. Duh ! anchoring centreIn worked ! In hide sight I can see why the rotated text didn't work now. I have removed the side anchors and rotation of text and though the word wrap didn't work, I have structured the text content to fit in the yellow stick pad._ but I still have no idea why earlier anchoring worked in N8 and not in N950_
[quote author="mlong" date="1311184172"]
As an aside, is your sticky note image (the parent) already rotated? Or are you rotating it as well?
[/quote]
No the parent image rotates only when it is pressed on. It zooms up 2x and rotates.
The sticky note in screen shot [non-zoom] shows that it is at an angle because the image is as such-the yellow pad is not straight.
Thanks all of you -
[quote author="senu188" date="1311233387"]I have removed the side anchors and rotation of text and though the word wrap didn't work, I have structured the text content to fit in the yellow stick pad.[/quote]
You can always set an explicit width: and height: for your Text area to enable the text to wrap properly, also.
-
Thank you for the suggestion. However I still find that in this app's case, I need to adjust the top margin by some amount - [parent's image - 40 ].
-
[Solved]
-
Solved Damn I don't get it. How do you close the thread with 'Solve d' tag ?
-
Edit the title of your first post and change ist to [Solved] title of the post
-
Duh! Thanks.