QAbstractButton:ressed() and QAbstractButton::release() signals.
connect(ui->pushButton, SIGNAL(pressed()), this, SLOT(pressed()));
connect(ui->pushButton, SIGNAL(released()), this, SLOT(released()));
connect(ui->pushButton, SIGNAL(pressed()), this, SLOT(pressed()));
connect(ui->pushButton, SIGNAL(released()), this, SLOT(released()));
To copy to clipboard, switch view to plain text mode
have slots ...
void MainWindow::pressed(){
qDebug()<<"hi pressed";
}
void MainWindow::released(){
qDebug()<<"hi released";
}
void MainWindow::pressed(){
qDebug()<<"hi pressed";
}
void MainWindow::released(){
qDebug()<<"hi released";
}
To copy to clipboard, switch view to plain text mode
Bookmarks