'How can I pin a PqQt label to the top without it getting resized?

I am Trying to pin a label to the top of my window without it getting resized.

screenshot of my application

I alredy tried alignment=Qt.AlignLeft | Qt.AlignTop, but this results in the exact opposite of what i want:

screenshot after alignment



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source