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

Qt6 compatibility #19

Open
macdew opened this issue Jun 29, 2021 · 0 comments
Open

Qt6 compatibility #19

macdew opened this issue Jun 29, 2021 · 0 comments

Comments

@macdew
Copy link

macdew commented Jun 29, 2021

I'm trying the waiting spinner in my Qt6 project, and it looks like the "center on parent" isn't working when the widget is used in application modal mode:
auto waiting_spinner = new WaitingSpinnerWidget(Qt::ApplicationModal, this, true, true);

In this mode, I think the widget is being made a top-level window (presumably due to windows flags set at creation) and as a result, the calls to WaitingSpinnerWidget::updatePosition are in global screen coordinates, not relative to the parent widget, and thus the spinner appears outside of my application window!

I've fixed it for now by offsetting the coordinates using parentWidget()->mapToGlobal(), but this may be something to investigate?

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

No branches or pull requests

1 participant