Hmmm i fail to see how to use that function. I see the example, but i'm not sure about how to apply it
Added after 7 minutes:
Ok, this is what i have done and it seems to work. Can you see any problem with this method?
void MainWindow::on_pushButton_clicked()
{
errWind = ErrorWindow::Instance();
errWind->setModal(false);
errWind->setText("Errores:");
QString msg
= errWind
->detailedText
();
msg.append("ERROR\n");
errWind->setDetailedText(msg);
errWind->show();
}
{
errWind->setDetailedText("");
}
void MainWindow::on_pushButton_clicked()
{
errWind = ErrorWindow::Instance();
errWind->setModal(false);
errWind->setText("Errores:");
QString msg = errWind->detailedText();
msg.append("ERROR\n");
errWind->setDetailedText(msg);
errWind->show();
connect(errWind,SIGNAL(buttonClicked(QAbstractButton*)),this,SLOT(clearErrors(QAbstractButton*)));
}
void MainWindow::clearErrors(QAbstractButton*)
{
errWind->setDetailedText("");
}
To copy to clipboard, switch view to plain text mode
Thanks
Bookmarks