This concerns an application written in PyQt6, and in particular in relation to Ubuntu Linux (using Kubuntu KDE Plasma, but the same issues exist in Gnome) , though it may be an issue in Windows, MacOS, etc. but I haven't run it there.
I did not write this application; I am a user but I have access to its source code. There is a small community of users who use this program and I try to be helpful to the developer, who is not, primarily, a programmer. He is very active in making improvements and he does accept git pull requests if he likes them.
I am a retired developer with some but not vast experience in python. Not much with PyQt.
Here is my question:
This application uses several different kinds of windows. There is the main window. Others are dialogs, inheriting from QDialog. Others, the ones I am concerned about, are inherited from QWidget. The problem I have with these windows is that they are not recognized by the system as windows. I see this in two ways.
1) the system PrintScreen function (implemented on my system as the "Spectacle" application) does not consider these windows as windows, when the "Active Window" is selected to be captured as a screen shot. If I select "Active Window" that is assumed to be the main window. If I want to capture just this window, I must use the "rectangular region" option. This is not the case with the dialogs. If one of them is active, then it is the active window.
2) The system settings have settings for window borders and other such adornments. When I modify these, the setting change is applied to the main window, to dialogs, but NOT to these "mere QWidget" windows.
So here are two questions:
1) Is this a linux-related issue or would similar issues apply under Windows, MacOS. etc.?
2) It there some PyQt enhancement that could be applied to such windows in a relatively pain-free manner that would allow these windows to be recognized by the system as windows?
Thanks for your attention to this.
I did not write this application; I am a user but I have access to its source code. There is a small community of users who use this program and I try to be helpful to the developer, who is not, primarily, a programmer. He is very active in making improvements and he does accept git pull requests if he likes them.
I am a retired developer with some but not vast experience in python. Not much with PyQt.
Here is my question:
This application uses several different kinds of windows. There is the main window. Others are dialogs, inheriting from QDialog. Others, the ones I am concerned about, are inherited from QWidget. The problem I have with these windows is that they are not recognized by the system as windows. I see this in two ways.
1) the system PrintScreen function (implemented on my system as the "Spectacle" application) does not consider these windows as windows, when the "Active Window" is selected to be captured as a screen shot. If I select "Active Window" that is assumed to be the main window. If I want to capture just this window, I must use the "rectangular region" option. This is not the case with the dialogs. If one of them is active, then it is the active window.
2) The system settings have settings for window borders and other such adornments. When I modify these, the setting change is applied to the main window, to dialogs, but NOT to these "mere QWidget" windows.
So here are two questions:
1) Is this a linux-related issue or would similar issues apply under Windows, MacOS. etc.?
2) It there some PyQt enhancement that could be applied to such windows in a relatively pain-free manner that would allow these windows to be recognized by the system as windows?
Thanks for your attention to this.
