Thanks, but it's not working.
My header file:
private slots:
void HandleOk();
void HandleApply();
void HandleCancel();
private slots:
void HandleOk();
void HandleApply();
void HandleCancel();
To copy to clipboard, switch view to plain text mode
My source file:
connect(OkButton, SIGNAL(clicked()), this, SLOT(HandleOK()));
connect(CancelButton, SIGNAL(clicked()), this, SLOT(HandleCancel()));
connect(applyButton, SIGNAL(clicked()), this, SLOT(HandleApply()));
QPushButton* OkButton = buttonBox->button(QDialogButtonBox::Ok);
connect(OkButton, SIGNAL(clicked()), this, SLOT(HandleOK()));
QPushButton* CancelButton = buttonBox->button(QDialogButtonBox::Cancel);
connect(CancelButton, SIGNAL(clicked()), this, SLOT(HandleCancel()));
QPushButton* applyButton = buttonBox->button(QDialogButtonBox::Apply);
connect(applyButton, SIGNAL(clicked()), this, SLOT(HandleApply()));
To copy to clipboard, switch view to plain text mode
void PAMS_Settings::HandleOk()
{
}
void PAMS_Settings::HandleCancel()
{
}
void PAMS_Settings::HandleApply( )
{
}
void PAMS_Settings::HandleOk()
{
QApplication::beep();
}
void PAMS_Settings::HandleCancel()
{
QApplication::beep();
}
void PAMS_Settings::HandleApply( )
{
QApplication::beep();
}
To copy to clipboard, switch view to plain text mode
but nothing happens when I push these buttons.
I feel I must have made a pretty fundamental mistake somewhere, but I am stuck.
BN
Bookmarks