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

Add mixture legacy/modern QObject::connect()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • dev
    • Core: Object Model
    • None

    Description

      It would be rather useful to be able to do

      connect(foo, SIGNAL(oink), []\{...});
      

      and its counterpart,

      connect(foo, &Foo::oink, bar, SLOT(fooOccurred));
      

      This came up with certain declarative use cases - I wanted to connect to signals defined in QML, and would've liked to use a lambda as the "slot". Ulf pointed out that the reverse is also useful, take a native signal, and connect it to a slot defined on the QML side.

      thiago, could you take a look, as discussed in the QtCS? I have too many things on my plate right now.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            villevoutilainen_qt Ville Voutilainen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes