Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11174

QML documentation for constants

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.0
    • 4.7.0
    • Documentation
    • None
    • Qt Creator 1.8.4. 2010-06-01 snapshot

    Description

      Several of the documentation related to constants used for property values in QML, such as Text.wrapMode (http://doc.qt.nokia.com/4.7-snapshot/qml-text.html#wrapMode-prop) do not provide enough information to produce a working code.

      In case following the documentation, the code below should work.

      Text {
      wrapMode: WordWrap
      }

      But instead the "Unable to assign [undefined] to int wrapMode" message is given.

      It would be useful to state the type of the each property, here "int", and link the constants to where ever they are available. Would it be Qt global object in this case?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
            paazmaya Juga Paazmaya
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes