[Qt-interest] How to specify alignment through qt-creator, calling addWidget()
Nitin Mahajan
nitinm76 at yahoo.com
Wed Jun 2 15:18:01 CEST 2010
Hello,
Is there a way to specify the Qt::Alignment for a widget being added to a GridLayout using QDesigner from Qt Creator?
When I saw the corresponding .cpp code for the .ui file, I find that the call to addWidget(), ignores last argument.
I have modified the sizePolicy of the widget to Fixed in both directions and now it is aligned to left. I want it to be aligned to center.
regards
-Nitin
More information about the Qt-interest-old
mailing list