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

[Signals and slots] handling of default arguments in SIGNAL macro

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 4.6.1
    • 4.5.0
    • Documentation
    • None

    Description

      The behaviour of the SIGNAL macro regarding default arguments is not explicitely described, even though it's widely used in examples and demos.
      if a signal has a default argument, for instance:
      void f(bool = true);

      then it is possible to use the SIGNAL macro with f() in QObject::Connect.

      This could be documented in the general signals and slots documentation here:
      http://doc.trolltech.com/4.5/signalsandslots.html

      Attachments

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

        Activity

          People

            gbk Martin Smith (Qt)
            ntg Pierre Rossi
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes