PDA

View Full Version : i have a problem in a very small application?



coder1985
22nd November 2007, 17:11
hi, i am trying to develop an application with 2 buttons "hide" & "test" when i press on
hide the test must disappear there is no problem until now but when i do the size of
the hide button is increased and expanded to take the other button location, but i need
this button with fixed size, there is a solution?
thanks.

wysota
22nd November 2007, 17:14
this button with fixed size, there is a solution?
thanks.

Set its size policy to fixed in both directions.

By the way - please try to use more descriptive titles for the threads you create.

coder1985
22nd November 2007, 17:33
i have already "hsizeType" and "vsizetype" under sizepolciy fixed.

By the way - please try to use more descriptive titles for the threads you create.
and thaks for your advises that help me much to be familiar with this forum and as you know i am a new to all tese things thank you again.

wysota
22nd November 2007, 18:09
i have already "hsizeType" and "vsizetype" under sizepolciy fixed.

In that case there is no way your button may be expanding. It can only move to the centre of the parent widget. If you want to avoid that, add a vertical splitter (or an equivalent stretch using hand written code) so that it pushes the widget back up.