void className::mousePressEvent(QMouseEvent *event) {
if(event->button() == Qt::LeftButton && ui->label->underMouse())
{
ui->button->setStyleSheet("color: blue; font-size: 12pt;");
qDebug("Mouse Press test");
}
}
 
void className::mouseReleaseEvent(QMouseEvent *event) {
if(event->button() == Qt::LeftButton && ui->label->underMouse())
{
ui->button->setStyleSheet("color: black; font-size: 12pt;");
qDebug("Mouse Release test");
}
}






QLabel