May-06-2024, 01:45 PM
Whenever companies try to re-invent the egg-laying, woolly pig, the result is always something terrible. The company Qt has been a thorn in my side for a long time. Not just since I started practicing Python, but also when I was building my models in FreeCAD, a 3D application whose user interface is based on Qt. In that time I've worked out 5 bugs in Qt, all of which have been fixed.
To the point. I am trying to establish an application on a 1024x600 pixel screen that fills exactly this screen. No more and no less. What does Qt (PyQt6) do? I get the basic window in the size I want, but in the graphical definition PyQt6 is ironing over my settings and conjures up scrollbars that were not projected in the whole project.
The origins of this problem were already created in the PyQt5 era, some of it has been dropped again in PyQt6, but not everything. The background to this whole dilemma is the idea that the user could come up with the idea of using a screen with a different resolution or even 2 or more screens. Based on this thought, Qt wants to protect the user from horrible images through an "intelligent" behavior of PyQt - just this egg-laying wool-milk pig.
Are there any fellow sufferers who have already made their fingers sore? The use of "setGeometry" doesn't help either. If I can't get it right, I can forget the project.
I didn't notice this behavior in the first GUI development phase because I was developing on the Mac and the screen has a much larger format than the target hardware. Now I've moved to the target hardware and can probably throw everything in the garbage can.
To the point. I am trying to establish an application on a 1024x600 pixel screen that fills exactly this screen. No more and no less. What does Qt (PyQt6) do? I get the basic window in the size I want, but in the graphical definition PyQt6 is ironing over my settings and conjures up scrollbars that were not projected in the whole project.
The origins of this problem were already created in the PyQt5 era, some of it has been dropped again in PyQt6, but not everything. The background to this whole dilemma is the idea that the user could come up with the idea of using a screen with a different resolution or even 2 or more screens. Based on this thought, Qt wants to protect the user from horrible images through an "intelligent" behavior of PyQt - just this egg-laying wool-milk pig.
Are there any fellow sufferers who have already made their fingers sore? The use of "setGeometry" doesn't help either. If I can't get it right, I can forget the project.
I didn't notice this behavior in the first GUI development phase because I was developing on the Mac and the screen has a much larger format than the target hardware. Now I've moved to the target hardware and can probably throw everything in the garbage can.