c++ - How to center widget inside QStackedLayout? -


I have a QProgressBar, which I should be centered inside QStackedLayout. How do I get it, seeing that QStackedLayout :: setAlignment has no effect, and the widget is always in the top-left?

Put QProgressBar in container (i.e. QWidget) which allows it to be centered with an additional layout is.

Comments