All,
I have a QTextEdit box that is filled with text. I also have a button which clears the text when clicked.
How would I make it so a message box appears when the button is clicked that would display "Are you sure you want to clear the log?" With a OK or Cancel button under it?
void Autotester::clearlogs()
{
uip.AutoLog->clear();
}
void Autotester::clearlogs()
{
uip.AutoLog->clear();
}
To copy to clipboard, switch view to plain text mode
Heres the connect for the button, the button that clears the text is named uip.autoClear.
connect( uip.autoClear, SIGNAL ( clicked() ), this, SLOT( clearlogs() )); //clears Autotester log when clicked
connect( uip.autoClear, SIGNAL ( clicked() ), this, SLOT( clearlogs() )); //clears Autotester log when clicked
To copy to clipboard, switch view to plain text mode
Thanks guys
Bookmarks