Is system modal dialog support in python pyqt-5/ubuntu.
-
modal dialog means, I thought there is any modal like Application modal to make dialog which not allow using any other application(for ex- browser) until unless I have not clicked any button of that dialog.
@yashi95 said in Is system modal dialog support in python pyqt-5/ubuntu.:
which not allow using any other application
Are you sure you want to do something like this? As user I would not like such an application. User should be free to switch between different applications.
-
modal dialog means, I thought there is any modal like Application modal to make dialog which not allow using any other application(for ex- browser) until unless I have not clicked any button of that dialog.
wrote on 13 Jan 2021, 08:14 last edited by JonB@yashi95
As @jsulm & I have said, you just don't want to do this, even if it's allowed (which I'm not sure it is anyway).Qt/windowing system allows an application modal dialog, which means user cannot interact with any other window within the Qt application. But system modal, meaning blocking any & all other process's windows, is a really bad idea, even if you think it's convenient for your application. So I hope you won't be able to do that anyway!
-
@yashi95 said in Is system modal dialog support in python pyqt-5/ubuntu.:
which not allow using any other application
Are you sure you want to do something like this? As user I would not like such an application. User should be free to switch between different applications.
-
@jsulm
Yes, I want to make like this dialog, for some criteria I want to show this type of dialog.@yashi95 Which type of dialog? Application modal or system wide modal?
-
@yashi95
As @jsulm & I have said, you just don't want to do this, even if it's allowed (which I'm not sure it is anyway).Qt/windowing system allows an application modal dialog, which means user cannot interact with any other window within the Qt application. But system modal, meaning blocking any & all other process's windows, is a really bad idea, even if you think it's convenient for your application. So I hope you won't be able to do that anyway!
-
@JonB
I understand your point. But I don't want to stop all processes in the window Just want to stop only my browser which is open beside the dialog.@yashi95 said in Is system modal dialog support in python pyqt-5/ubuntu.:
Just want to stop only my browser
So, you need an application modal dialog, right?
This is easy to achieve: use exec() when showing the dialog. -
@JonB
I understand your point. But I don't want to stop all processes in the window Just want to stop only my browser which is open beside the dialog.wrote on 13 Jan 2021, 08:29 last edited by@yashi95
You need to be much clearer about what this "browser" is. If it's a separate browser process you basically can't and shouldn't do this. But you said:I created a browser in a different way
We need to know exactly what you mean by this.
-
@yashi95 said in Is system modal dialog support in python pyqt-5/ubuntu.:
Just want to stop only my browser
So, you need an application modal dialog, right?
This is easy to achieve: use exec() when showing the dialog.wrote on 13 Jan 2021, 08:31 last edited by@jsulm said in Is system modal dialog support in python pyqt-5/ubuntu.:
@yashi95 said in Is system modal dialog support in python pyqt-5/ubuntu.:
Just want to stop only my browser
So, you need an application modal dialog, right?
This is easy to achieve: use exec() when showing the dialog.@yashi95
If you want application modal, so it blocks any and all windows in your application regardless of where in your application it is called from, you will need to passnullptr
as the parent of the modal dialog you create. -
@yashi95
You need to be much clearer about what this "browser" is. If it's a separate browser process you basically can't and shouldn't do this. But you said:I created a browser in a different way
We need to know exactly what you mean by this.
wrote on 13 Jan 2021, 09:00 last edited byThis post is deleted! -
@yashi95
You need to be much clearer about what this "browser" is. If it's a separate browser process you basically can't and shouldn't do this. But you said:I created a browser in a different way
We need to know exactly what you mean by this.
15/15