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

Add an overload of toScriptValue that only produces vanilla JavaScript types

    XMLWordPrintable

Details

    • All
    • 892fbeffe (dev), 6e3ef191c (6.9), 377f26c35 (6.8), e014cfa14 (tqtc/lts-6.5), 61a026ecc (dev), 6017dd860 (6.9), 71440f52e (6.8), 67d00ec73 (tqtc/lts-6.5)

    Description

      I made MyClass available in QJSEngine, and it works fine with Qt 6.6.*
      But in Qt 6.7 it is broken.

      QVariant MyClass::testArray() const

      { QVariantList result; result << 1 << 2; return result; }

      QVariantList returned in JS engine is array, and it works fine, but Array.isArray returns false in Qt 6.7, while it returns true in Qt 6.6 as expected.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            ighor IGHOR
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: