QTimer* timer = new QTimer(this); timer->setInterval(1000); timer->setObjectName("myTimer"); connect(timer, SIGNAL(timeout()), this, SLOT(handleTimeout())); void MyClass::handleTimeout() { QObject* sender = QObject::sender(); if (sender->objectName() == "myTimer") { // do something specific for myTimer } else { // do something else } }In this code example, a QTimer instance is created with an objectName of "myTimer". When the timer's timeout event is triggered, the handleTimeout slot is called, which checks the objectName of the sender. If it matches "myTimer", a specific operation can be performed. The QObject class is included in the Qt Core library, which is typically included in most Qt application development environments.