[Qt-interest] How to layout with width-for-height ?
Martin Schröer
gordon at gordonswelt.de
Wed Sep 16 00:55:04 CEST 2009
Hey Bill.
I was also struggling with an issue similar to yours.
In short words: i gave up looking a solution that
uses width-for-height and started implementing
a custom layout instead.
[Which is no problem at all, as layouts can be nested.]
Implementing such layout is also not too difficult at all,
all you'd have to do is to implement some methods
using default values and setGeometry() to your needs.
FYI: I had a video widget inside some other widgets
and i wanted to have it scale in aspect - unsolvable
using the default layout types.
I can send you the source to my layout implementation
if that would be of any help to you.
Martin
william.crocker at analog.com schrieb:
> Gang:
>
> I have some widgets which can provide height-for-width.
> This is supported by the Qt layout system.
>
> But, I also have widgets which need to behave
> like width-for-height. This behavior is not supported
> by the Qt layout system.
>
> How do I layout, given the need for some widgets
> in the layout to exhibit width-for-height?
>
> Obviously I would like to keep it as simple as possible
> and use the existing Qt widget layout classes.
>
> Thanks in advance.
>
> Bill
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
More information about the Qt-interest-old
mailing list