Good day,
I have an application running in fullscreen mode. This application displays errors on a separate dialog, but hen the dialog is displayed the OS (it only runs on linux) menu bars are displayed.
Is there a way to avoid this situation?
To display dialogs I use:
void ErrorWindow
::notifyError(const QString &msg
) {
if (errWind.isNull()) //All errors are displayed on a single message box as long as the message box exists.
{
errWind->resize(500, 200);
errWind->setModal(false);
errWind->setText("Errors have been found. Press show details to review the error list ");
}
if(messages<100)
{
errtxt = errWind->detailedText();
messages++;
}
else
{
errtxt = "";
messages=1;
}
errtxt.
prepend(QString("%1:%2\n").
arg(QDateTime::currentDateTime().
toString(DATETIME_FORMAT
)).
arg(msg
));
errWind->setDetailedText(errtxt);
errWind->show();
}
void ErrorWindow::notifyError(const QString &msg)
{
if (errWind.isNull()) //All errors are displayed on a single message box as long as the message box exists.
{
errWind= new QMessageBox;
errWind->resize(500, 200);
errWind->setModal(false);
errWind->setText("Errors have been found. Press show details to review the error list ");
connect(errWind.data(),SIGNAL(buttonClicked(QAbstractButton*)),this,SLOT(clearErrors(QAbstractButton*)));
}
QString errtxt;
if(messages<100)
{
errtxt = errWind->detailedText();
messages++;
}
else
{
errtxt = "";
messages=1;
}
errtxt.prepend(QString("%1:%2\n").arg(QDateTime::currentDateTime().toString(DATETIME_FORMAT)).arg(msg));
errWind->setDetailedText(errtxt);
errWind->show();
}
To copy to clipboard, switch view to plain text mode
Thanks in advance.
Bookmarks