i have a problem in a very small application?
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.
Re: i have a problem in a very small application?
Quote:
Originally Posted by
coder1985
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.
Re: i have a problem in a very small application?
i have already "hsizeType" and "vsizetype" under sizepolciy fixed.
Quote:
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.
Re: i have a problem in a very small application?
Quote:
Originally Posted by
coder1985
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.