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

PySide6: can't use QQuickTextDocument as a property type on some OSes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.8.3
    • PySide
    • None
    • Linux/X11

      When I try to use QQuickTextDocument as a property type of a custom QML Item in PySide6 (see attached), it works on macOS, but on Linux (and possibly Windows) I get this warning:

      RuntimeWarning: QMetaObjectBuilder: Failed to add property "document" to "SyntaxHighlight": Invalid property type "QQuickTextDocument*".

      The fact that it works fine on Mac, and that I copied this from supposedly working examples of how to do this in C++ suggests this is a PySide bug. But if there's a "righter" way to do it please let me know!

      Only found this reference on the internet with no solution:

      https://stackoverflow.com/questions/78271412/how-to-pass-qquicktextdocument-pointer-from-qml-to-python

        1. Bug.zip
          10 kB
        2. example.py
          2 kB
        3. pyside3213_log.txt
          0.5 kB
        4. pyside3213.zip
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            mattsidefx Matt Chaput
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes