Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] N950 QML element problem
Qt 6.12 LTS is out! See what's new in the release blog

[Solved] N950 QML element problem

Scheduled Pinned Locked Moved Mobile and Embedded
18 Posts 4 Posters 9.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • AlicemirrorA Offline
    AlicemirrorA Offline
    Alicemirror
    wrote on last edited by
    #7

    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.

    Enrico Miglino (aka Alicemirror)
    Balearic Dynamics
    Islas Baleares, Ibiza (Spain)
    www.balearicdynamics.com

    1 Reply Last reply
    0
    • AlicemirrorA Offline
      AlicemirrorA Offline
      Alicemirror
      wrote on last edited by
      #8

      @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.

      Enrico Miglino (aka Alicemirror)
      Balearic Dynamics
      Islas Baleares, Ibiza (Spain)
      www.balearicdynamics.com

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #9

        [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?

        1 Reply Last reply
        0
        • AlicemirrorA Offline
          AlicemirrorA Offline
          Alicemirror
          wrote on last edited by
          #10

          This software if open? can you post a working piece somewhere so I can test? Do you have the emulator of the device ?

          Enrico Miglino (aka Alicemirror)
          Balearic Dynamics
          Islas Baleares, Ibiza (Spain)
          www.balearicdynamics.com

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mlong
            wrote on last edited by
            #11

            It might be could to use "anchors.centerIn: parent" rather than anchoring to the sides. Then make sure your rotationOrigin is set to center.

            As an aside, is your sticky note image (the parent) already rotated? Or are you rotating it as well?

            Software Engineer
            My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #12

              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

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mlong
                wrote on last edited by
                #13

                [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.

                Software Engineer
                My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #14

                  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 ].

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #15

                    [Solved]

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #16

                      Solved Damn I don't get it. How do you close the thread with 'Solve d' tag ?

                      1 Reply Last reply
                      0
                      • AlicemirrorA Offline
                        AlicemirrorA Offline
                        Alicemirror
                        wrote on last edited by
                        #17

                        Edit the title of your first post and change ist to [Solved] title of the post

                        Enrico Miglino (aka Alicemirror)
                        Balearic Dynamics
                        Islas Baleares, Ibiza (Spain)
                        www.balearicdynamics.com

                        1 Reply Last reply
                        0
                        • ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #18

                          Duh! Thanks.

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt
                          • Unsolved