How to get sender widget with a signal/slot mechanism?

Use QObject::sender() in the slot, like in the following Example: void MainWindow::someSetupFunction( void ) { … connect( _foobarButton, SIGNAL(clicked()), this, SLOT(buttonPressedSlot()) ); } void MainWindow::buttonPressedSlot() { // e.g. check with member variable _foobarButton QObject* obj = sender(); if( obj == _foobarButton ) { … } // e.g. casting to the class you know its connected … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)