Recorded at the Qt Developer Days in Berlin in 2013. Slides available at https://devdays.kdab.com/?page_id=225 Short Abstract: Signals and Slot is one of the Qts key concept. Qt 5 introduce a new connection syntax, which allows compile time checking, smart type conversion, connection to lambdas, and more. In this talk, we will compare the old and the new syntax, see how to use it and what is possible, including tips and pitfalls. We will also go a bit under the hood and look a bit of the implementations of signals and slots which should help you to understand them even better. Abstract: One of Qts main particularity are the signals and slots. They enabled from the beginning making easy user interface and are probably a key to Qts success. They still play a big role in QML. Qt5 which was just released less than a year ago, introduces a new syntax for connecting your signals and slot. Instead of using the SIGNAL and SLOT macro, you can use pointer to member functions. This has numerous advantages such as compile time checking of the validity of the connection, and automatic conversion of types regardless of typedefs or namespaces, or to be able to connect to lambda expressions. This talk will introduce this new syntax in details, with examples of what you can do and common mistakes to avoid. We will also go over some implementation detail and design decision behind it. It is much easier to understand and use efficiently. Presenter Biography: Olivier Goffart started working with Qt 10 years ago with his involvement in KDE. He was then hired by Trolltech to work on Qt in 2007. He has been working on various areas of Qt including the itemview framework, the widget stylesheets, QtScript, the QObject internals, and the QML debugger for Creator. He is now the co-founder of Woboq, a company based in Berlin focussing on Qt.
QtDD13 - Olivier Goffart - Signals and Slots in Qt 5