/* This file is part of KDBindings. SPDX-FileCopyrightText: 2021 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com> Author: Sean Harmer <sean.harmer@kdab.com> SPDX-License-Identifier: MIT Contact KDAB at <info@kdab.com> for commercial licensing options.*/#include<kdbindings/signal.h>#include<iostream>#include<string>usingnamespaceKDBindings;classButton{public:Signal<>clicked;};classMessage{public:voiddisplay()const{std::cout<<"Hello World!"<<std::endl;}};intmain(){Buttonbutton;Messagemessage;button.clicked.connect(&Message::display,&message);button.clicked.emit();return0;}