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

Shiboken doesn't find contructors for forward declared Qt classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.12.1
    • Shiboken
    • None
    • Linux (Manjaro)

    Description

      I'm trying to generate bindings for a header with methods that use QTimeZone. QTimeZone is only forward-declared, not included in the header. Shiboken fails with

      error: #error writeMinimalConstructorExpression: Could not find a minimal constructor for type 'const QTimeZone &'. This will result in a compilation error.

      When I replace the forward-declaration with an include or include QTimeZone in the bindings.h it works fine.

      The same issue can be observed with other Qt classes such as QJsonArray or QDateTime.

      The failing code can be found at https://invent.kde.org/nicolasfella/kpublictransport/commits/bindings

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            nicolasfella Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes