Font size change on different machines (QLabel inside QVBOXLayout)

Hi... I am using PyQT5 and QT Creator to make a GUI for use on different machines. I am using layouts for all QLabels and Qtexts. And I use screen resolution (width and height) to define each layout size:

which changes the size of layout proportionally to screen resolution of current machine. But still I have issues as the everything is fine on my machine but some text inside QLabel (which is in turn inside QLayout) are incomplete on other machines (photo attached). I assume the text inside layouts should automatically change font size, but it seems that this is not happening in my case. This is how the font size is defined in my code:

@Akzmn Note that if you use setPixelSize() method, for the same size font, on higher resolution screen (higher density of pixels and hence smaller pixel size), it will appear smaller. Is this what you want? Or you want it appear physically the same size on screens with different resolutions?