You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dialog() Needs System Model Option and/or Added to the start bar so it can be found #2947
Sometime dialogs are slow to show and they go behind other windows, there is no way to find those. You may find them if you minimise each window but not if you minimise them all at once (WIN+D). Similar issue if a window opens on top of the copyq dialog. This is happening often enough to be really annoying, and to minimise the window popping on top I first have to close some of its dialogs.
As the dialog() title doesn't get added to the start bar you can't see it that way. It doesn't go into anywhere in copyq that I have seen.
What I'd like is an option to make the dialog system modal (on top) or an always on top option and/or an option to add the title to the start bar. Maybe an option to abort the script after a period on dialog inactivity also.
I went to the QT page you mention, there modal can be made Windows or system modal, yours I'm guessing was application modal. System Model should work as well if not better if that was an option...
RE: Would the ".onTop" attribute work for you? Not sure what you are asking unless you misread my response where I said it it does work. So far I've had a minor feature that it may not maintain focus, but a system model dialog should.
But WindowModal means modal to the parent window only (if set). I'm not aware of any option in Qt that would allow setting a window to be modal in the system. But maybe I'm misunderstanding the problem.
RE: Would the ".onTop" attribute work for you? Not sure what you are asking unless you misread my response where I said it it does work. So far I've had a minor feature that it may not maintain focus, but a system model dialog should.
I mean, would implementing just the .onTop fix this issue for you?
Activity
Adds attributes for controlling the window created via dialog()
hluk commentedon Feb 5, 2025
Can you check if new build fixes this? https://ci.appveyor.com/project/hluk/copyq/builds/51457867/artifacts
There are additional attributes you can set for the
dialog():For example:
dialog(..., '.modal', true)Not sure which combination of attributes would help.
dbareis commentedon Feb 6, 2025
Thanks for the code update.
I tried combinations without any obvious effect.
Adds attributes for controlling the window created via dialog()
hluk commentedon Feb 6, 2025
Thanks for testing. Would the ".onTop" attribute work for you?
I've added few more attributes to modify the dialog window type: https://ci.appveyor.com/project/hluk/copyq/builds/51462901/artifacts
Example:
dialog(..., '.sheetWindow', false, '.popupWindow', true, '.foreignWindow', true)dbareis commentedon Feb 11, 2025
I went to the QT page you mention, there modal can be made Windows or system modal, yours I'm guessing was application modal. System Model should work as well if not better if that was an option...
WindowModality { NonModal, WindowModal, ApplicationModal }
RE: Would the ".onTop" attribute work for you? Not sure what you are asking unless you misread my response where I said it it does work. So far I've had a minor feature that it may not maintain focus, but a system model dialog should.
hluk commentedon Feb 11, 2025
But
WindowModalmeans modal to the parent window only (if set). I'm not aware of any option in Qt that would allow setting a window to be modal in the system. But maybe I'm misunderstanding the problem.I mean, would implementing just the
.onTopfix this issue for you?Adds attributes for controlling the window created via dialog()
Adds attributes for controlling the window created via dialog()
Adds attributes for controlling the window created via dialog()