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

Please enhance the documentation of QScriptValue

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Out of scope
    • Icon: P4: Low P4: Low
    • None
    • 4.7.0
    • Documentation, Qt Script
    • None
    • Windows NT

    • 8afd2d145e608d9d86860c6400844fe4c39edbb4

      Hallo there,

      I feel that the documentation of QScriptValue is easy to understand for the people who already have a good idea about the issue.
      On the other hand I don't understand much.

      I read:
      >>For the object-based types (including Date and RegExp), use the newT() functions in QScriptEngine (e.g. QScriptEngine::newObject()) to create a QScriptValue of the desired type. For the primitive types, use one of the QScriptValue >>constructor overloads.
      How do I do that? Please add an example on how to make a Qt standard type accessabel in the script.

      This paragraph points to QScriptEngine for more information, the appropreate section points to "QtScript documentation" which points back to QScriptValue and QScriptEngine.

      I guess the whole issue is complicated.
      For me Qt script is a great thing.
      But my attempts to use Qt script in my project did not produce much fruit so far.
      i would greately benefit from a tutorial about how to extend the Qt script basic language.

      Cheers Gerhard

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

            docteam Qt Documentation Team
            gerhard w schuster Gerhard Walter Schuster
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes