Is system modal dialog support in python pyqt-5/ubuntu.
-
hello,
I want to know is system modal dialog support in pyside2.
I am trying to open a dialog on top of the browser, but with that dialog able to access the browser. I want after opening the dialog not able to access any browser, first need to close dialog then able to access the dialog. -
hello,
I want to know is system modal dialog support in pyside2.
I am trying to open a dialog on top of the browser, but with that dialog able to access the browser. I want after opening the dialog not able to access any browser, first need to close dialog then able to access the dialog.@yashi95 said in Is system modal dialog support in python pyqt-5/ubuntu.:
I want to know is system modal dialog support in pyside2.
It should have nothing to do with Python vs C++. But what system modal dialog call are you thinking Qt provides? I don't think platform windowing systems allow system-wide modal dialogs any longer. It would be very annoying if your application blocks access to windows belonging to other processes. I don't know what "the browser" you refer to is, Qt applications are desktop, nothing to do with some web browser window the user might have open.
-
@yashi95 said in Is system modal dialog support in python pyqt-5/ubuntu.:
I want to know is system modal dialog support in pyside2.
It should have nothing to do with Python vs C++. But what system modal dialog call are you thinking Qt provides? I don't think platform windowing systems allow system-wide modal dialogs any longer. It would be very annoying if your application blocks access to windows belonging to other processes. I don't know what "the browser" you refer to is, Qt applications are desktop, nothing to do with some web browser window the user might have open.
@JonB
my point with "the browser" is I created a browser in a different way but I want to open a dialog with an ok or cancel button on top of the browser, so when the dialog will open I don't want to access my browser until unless I have not clicked any button of that dialog. -
@JonB
my point with "the browser" is I created a browser in a different way but I want to open a dialog with an ok or cancel button on top of the browser, so when the dialog will open I don't want to access my browser until unless I have not clicked any button of that dialog. -
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.
@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
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. -
@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.@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.
-
@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.