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

Mandatory metatype registration makes Q_GADGET types with no default constructor unusable in new-style connect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.5.0 RC
    • 5.5.0 Alpha
    • Core: Object Model
    • None
    • Windows 7 MinGW Beta Snapshot
      I remember having a similar issue on Linux
    • I3065f6d57bc1f37e16988d2dee99118de250ca56

    Description

      When trying to connect a slot to QDBusServer::newConnection(const QDBusConnection &connection), the compiler complains with a longer error message as attached in build.log.

      It seems the template magic in object_impl.h is somehow confused and struct ConnectionTypes thinks QDBusConnection is declared as Qt Meta Type.

      Attached is also a minimal example, reproducing the error.

      Attachments

        1. qtbug.zip
          2 kB
        2. build.log
          5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ogoffart Olivier Goffart (Woboq GmbH)
            rolandwinklmeier Roland Winklmeier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes