[Interest] Centre a QDialog on macOS in a QQuickWindow
Dimitar Dobrev
dpldobrev at protonmail.com
Sun Oct 6 15:18:32 CEST 2019
Hello everyone,
I have a QQuickWindow which shows a QDialog. I want the QDialog to be centred on macOS and be window-modal. I've tried with:
windowHandle()->setTransientParent(myQQuickWindow);
windowHandle()->setFlags(Qt::WindowType::Dialog);
But the QDialog keeps behaving like a regular macOS window.
How can I achieve this?
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20191006/f6a64f97/attachment.html>
More information about the Interest
mailing list