[Qt-interest] aspect-ratio for graphs
phil prentice
philp.cheer at talktalk.net
Thu Jul 15 12:55:15 CEST 2010
Sorry Sean
Finger/Brain trouble...
Indeed I am trying to use heightForWidth()...See my original mail which has
a derived object within a layout. I am cutting it down though and will
continue to try and get it to work. If no success I will mail the cut down
version of my code. If I am successful I will also provide the code.
Thanks for your help
Phil
On Thursday 15 July 2010 10:34, you wrote:
> Hi Phil,
>
> please reply to the list not to me personally.
>
> On Thursday 15 July 2010 11:22:10 phil prentice wrote:
> > Thanks Sean
> > Will it help me with my aspect-ratio problem....because if it does then
> > I would definitely use it. Its the aspect-ratio problem I would like to
> > solve...I need my graphs to have aspect-ratio of 1:1(inside a layout). I
> > could not see how QGraphicsView can help me there??? Please tell me that
> > I am wrong!!!
>
> QGraphicsView itself is just a QWidget so it will not support fixed aspect
> ratio of the widget itself out of the box - you'll still need to use
> something like heightForWidth() to implement that.
>
> You can make the graphs within your scene fixed aspect ratio quite easily
> though. Can you provide a .ui file that shows the kind of layout you would
> like?
>
> > I am still trying to play, but as of yet not getting anywhere
>
> I have no time to look at this right now but I may be able to later.
>
> Cheers,
>
> Sean
More information about the Qt-interest-old
mailing list