Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1296

QVarLengthArray not supported

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.15.1
    • 5.14.2
    • PySide
    • None
    • eb3313989a5a93f66067042dd5a8ed516e5febe7 (pyside/pyside-setup/5.15)

    Description

      QVarLengthArray is not supported by PySide. Adding something like this:

          <!-- Convert a QVarLengthArray to a python structure using the std::move constructor -->
          <container-type name="QVarLengthArray" type="vector">
              <include file-name="QVarLengthArray" location="global"/>
              <conversion-rule>
                  <native-to-target>
                      <insert-template name="cppvector_to_pylist_conversion"/>
                  </native-to-target>
                  <target-to-native>
                      <add-conversion type="PySequence">
                          <insert-template name="pyseq_to_cppvector_conversion"/>
                      </add-conversion>
                  </target-to-native>
              </conversion-rule>
          </container-type>
      

      brings one a bit further but then I run into:

      Unable to translate template argument 316: Unable to translate type "16": Cannot find type entry for "16".
      

      The 16 is the size of the QVarLengthArray I'm using.

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            milianw Milian Wolff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes