Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Text element with Text.AlignJustify
QtWS25 Last Chance

QML Text element with Text.AlignJustify

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 3 Posters 5.8k Views
  • 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.
  • Q Offline
    Q Offline
    QtQueries
    wrote on last edited by
    #1

    Hi

    I need to create a Text element with fully justified text. According to "4.7 Snapshot docs":http://doc.qt.nokia.com/4.7-snapshot/qml-text.html#horizontalAlignment-prop Text.AlignJustify is a valid value for Text.horizontalAlignment. But this does not appear in "4.7 Latest docs":http://doc.qt.nokia.com/latest/qml-text.html#horizontalAlignment-prop.

    The latest Qt Creator (2.2.1) seems to know about Text.AlignJustify but when it is specified as the value for Text.horizontalAlignment, I get the error: Unable to assign [undefined] to int horizontalAlignment.

    When will this option become available?

    Also I don't think I fully understand the difference between the "snapshot" docs and "latest", what is the difference?

    QQ

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbrasser
      wrote on last edited by
      #2

      Hi,

      AlignJustify will be added as part of the QtQuick 1.1 release ( http://doc.qt.nokia.com/4.7-snapshot/qtquick-whatsnew.html ).

      Regards,
      Michael

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Chuck Gao
        wrote on last edited by
        #3

        Hi QQ, "snapshot" and "latest"(know as release) docs are different. AFAWK, there has tp(technical preview), beta, and release version for Qt. So maybe some context, some APIs will be changed or removed in release version.

        What's the justified text used for ? Can it be place with other alignment value?

        Chuck

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Chuck Gao
          wrote on last edited by
          #4

          Hi Michael, what's the AlignJustify? And your link is wrong(with a ")" in the end) :-)

          Chuck

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            QtQueries
            wrote on last edited by
            #5

            [quote author="mbrasser" date="1311061700"]Hi,

            AlignJustify will be added as part of the QtQuick 1.1 release (http://doc.qt.nokia.com/4.7-snapshot/qtquick-whatsnew.html).

            Regards,
            Michael[/quote]

            Hi Michael

            Thanks for that. Any idea when this will be available to be used for Symbian apps?

            QQ

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mbrasser
              wrote on last edited by
              #6

              Hi,

              QtQuick 1.1 should be a part of Qt 4.7.4 (unless plans change), but no release date has been announced yet.

              Chuck, thanks for pointing out the problem with the link -- should be fixed now.

              Regards,
              Michael

              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 Extensions
              • Unsolved