Originally Posted by Lykurg Yes, read the docs to QObject::sender() Better would be using a QSignalMapper, but if you want use the sender() see what is the output of Qt Code: Switch view void MainWindow::openClassInClientArea(){ qWarning() << QObject::sender();} void MainWindow::openClassInClientArea() { qWarning() << QObject::sender(); } To copy to clipboard, switch view to plain text mode when you click the different buttons. Hi m_classroomActionList->sender()->objectName(); is giving error. error: `QObject* QObject::sender() const' is protected.
void MainWindow::openClassInClientArea(){ qWarning() << QObject::sender();}
void MainWindow::openClassInClientArea() { qWarning() << QObject::sender(); }
Cheers, Phillip --- Please post the solution you got to solve your problem. It may help others.
Forum Rules
Bookmarks