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

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -