Forcing minimum size for widgets?

Sven Langkamp sven.langkamp at gmail.com
Thu Jul 14 01:26:30 BST 2011


On Thu, Jul 14, 2011 at 2:18 AM, Steven Kakoczky
<steven.kakoczky at gmail.com>wrote:

> Hi all,
> I have made a sidebar for notes and am having difficulty figuring out how
> to insert notes into it and have them stretch to fill the side bar
> horizontally but keep it's minimum size vertically. For the time being I'm
> just using a QVBoxLayout and it stretches all child widgets to fill it and I
> don't want this to happen, but nothing I've changed has been able to work
> how I want it too. I was just wondering if it was possible to force minimum
> height for child widgets, if so how, and if not what would be the best
> option to go with?
>

Insert a QSpacerItem at the bottom and set it to expand vertically.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20110714/a8753a5c/attachment.htm>


More information about the calligra-devel mailing list