Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Report Can Go Offscreen #4312

Open
Spekular opened this issue Apr 22, 2018 · 4 comments
Open

Error Report Can Go Offscreen #4312

Spekular opened this issue Apr 22, 2018 · 4 comments
Labels

Comments

@Spekular
Copy link
Member

If a large number of samples & VSTs fail to load, the error report displayed may grow tall enough to go off the screen.

I believe the prompt should instead stay onscreen (never grow taller than screen size) and display a scrollbar. The ability to resize the prompt horizontally would also allow longer paths to display in fewer lines.

@Sawuare
Copy link
Member

Sawuare commented Apr 26, 2018

The error reports use a QMessageBox, which doesn't support scroll bars. It's supposed to support a size grip, but it doesn't seem to work when I tried it.

It takes a lot of errors for the report to go off-screen. so I don't think it's worth a custom dialog.

@Spekular
Copy link
Member Author

Spekular commented Apr 26, 2018 via email

@PhysSong PhysSong added the gui label May 2, 2018
@Sawuare
Copy link
Member

Sawuare commented May 28, 2018

I tried to add a scroll area before and it did not work, but now it does. I will fix this.

@Sawuare Sawuare self-assigned this May 28, 2018
@Sawuare
Copy link
Member

Sawuare commented May 31, 2018

So applying a scroll area does not work as expected.

image

  • The message box is inside a scroll area window, instead of its own window.
  • The window is not centered and is non-modal (does not block input to other windows).
  • Window title cannot be changed.
  • OK button is not always visible.

I might be doing something wrong though, so for comparison, here is my code:

QMessageBox * mb = new QMessageBox;
mb->setWindowTitle(tr("LMMS Error report"));
mb->setText(errorSummary());
mb->setIcon(QMessageBox::Warning);

QScrollArea * sa = new QScrollArea;
sa->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
sa->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
sa->setWidget(mb);
sa->show();

and the current code:

QMessageBox::warning( NULL, tr("LMMS Error report"), errorSummary(), QMessageBox::Ok );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants