0

I want to make a program in python, that has a label. I want that this label is always centered, but I dont know how i do this. I cant find anywhere the option for this and i dont know if this even exists. I use Qt Designer to create the UI and so on. I googled it already, but i found nothing for my problem.

I centered it already in the right screensize, but it is too big, that my screen can't put everything so, that i can see everything without a scrolling bar. And if i make the screen tinier and center it, it will be in the same position if i reize the program while running. Hope anyone can help me.

  • You must use [layout managers](//doc.qt.io/qt-5/layout.html), and ensure that you properly set up a main layout, [even in designer](https://doc.qt.io/qt-5/designer-layouts.html). – musicamante Mar 28 '23 at 15:07

0 Answers0