Popup as extern Window?
-
Is there are any way to open popup as Window like it was before in QuickControls 1.0 ?
For example:
Popup { id: popup x: 100 y: 100 width: 200 height: 300 modal: true focus: true closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent }
This code doesn't created new Window, and this causes problems when I have a small window and the dialog is larger than the window size.
Same behavior for Menu, Popup, Dialogs and so on.Theoretically, i can do it myself, create a window and put a Popup there, but I'm not sure if it's so easy to do. I need to write a huge amount of code, close the window when clicked outside, position the window under the cursor, taking into account the corners of the screen, etc.
Is it possible to somehow return the old behavior as it was in Controls 1.0, or perhaps someone has already done this?
-
@freedbrt I asked a similar question some time ago. I am on my phone so can't easily search for it now but in any case the question did not yield any detailed information as I recall. The conclusion was that a popping up a separate
Window
is the correct and only way to do this. -
@freedbrt said in Popup as extern Window?:
Is there are any way to open popup as Window like it was before in QuickControls 1.0 ?
Not as of Qt 6.4, unfortunately. It is a known issue: https://bugreports.qt.io/browse/QTBUG-69558 The issue has been around for a long time, but is still on the radar for the Qt engineers (see the "Future Work" section of https://www.qt.io/blog/dialogs-in-qt-quick )