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

All a new connect from SIGNAL to lambda, because Qt5 signals/slots syntax doesn't work when signal in dll.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.7.0 RC
    • Core: Object Model
    • None
    • win7 x64, qt-opensource-windows-x86-mingw530-5.7.0-rc.exe.

    Description

      This syntax:

      QObject::connect(quit, &Sender:clicked, this, &Receiver::close)
      

      will fail when called connect in a dll, it report "QObject::connect: signal not found in...",
      so when i connect to a lambda use the new Qt5 signals/slots syntax in dll will failed.
      But when called in exe, it is ok.

      The old syntax:

      QObject::connect(quit, SIGNAL(clicked()), this, SLOT(close()));
      

      works alwasy fine.

      So I hope you can let us call by the syntax:
      QObject::connect(quit, SIGNAL(clicked()), this, &Receiver::close);
      Then I can use lambda in dll.
      Thanks!

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            johnff johnff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes