Skip to content

a helper class and example of how to use a lambda function (c++11/c++0x) as a slot of connect functions

Notifications You must be signed in to change notification settings

caetanus/lambda-connect-qt4

Repository files navigation

Project and example of use of c++lambda (c++11/c++0x) as a slot receiver of connect in qt4

to use it, include lambda-connect/lambdaconnect.h example:

#include "lambdaconnect.h"

...

connect(&myButton, SIGNAL(clicked()),
                          [](){
                              QMessageBox::information(NULL, "", "button was clicked");
                          });
...

there is an example code into the repository.

About

a helper class and example of how to use a lambda function (c++11/c++0x) as a slot of connect functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published