Qt-interest Archive, March 2002
How to set self defined height to QSpacer object
Message 1 in thread
Hi,
I'm using QT 3.0.2 designer. There is a problem to use QSpacer's. I
need to set self defined height for horizontal spacer but I can't. :(
The designer property editor allow edit only 3 property: name,
orientation, sizeType. The uic make the spacer constructor like follow
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
To get spacer as child of his layout I couldn't. Any spacer add to
Layout by "addItem" method.
To call "changeSize" method I can't too:
First: because the name property of
the spacer item in designer ignored by "UIC" and I can't use the name (May be this is BUG???)
Second: It couldn't be sure that the spacer names was generated once (I mean
the names was generated from ui file) will equal all the time
--
[ signature omitted ]