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

Type safe connect doesn't handle default parameters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.9.2
    • Core: Other
    • None

    Description

      When using type-safe connect() methods (taking functors), the default values for parameters are not taken into account when looking at signal-slot compatibility, e.g.

      void someSlot(int a, int b = 0);
      void someSignal(int s);

      There should not be a problem connecting this signal to slot, and it's possible using the old SIGNAL() and SLOT() macros. When using the type-safe versions:

      The slot requires more arguments than the signal provides.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            krojew Kamil Rojewski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes