[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: How can I resize a QCanvas when it's QCanvasView is resized
From: Thomas Zander <zander () planescape ! com>
Date: 2003-06-02 14:03:47
[Download RAW message or body]
On Mon, Jun 02, 2003 at 09:46:50AM -0400, Jeff McLean wrote:
> Hi Thomas,
>
> I agree I still have a long way to go with Qt before I can do this stuff with
> my eyes closed :)
:-)
> What I mean is that I start my canvas off as 500x500
...
> Does that explain what I mean a bit more?
I understand your point, and I think you misunderstood the concept of canvas
and canvas view.
Please read up on that; the answer I gave below still seem to answer your
question.
>
> On Monday 02 June 2003 05:07 am, Thomas Zander wrote:
> > On Mon, Jun 02, 2003 at 02:48:21AM -0400, Jeff McLean wrote:
> > > Hi,
> > >
> > > Sorry to ask a strait-QT/KDE question I hope that is OK.
> > >
> > > Again, I'm working on learning the required skills to make my drawing
> > > program, and I have a QCanvasView and it's associated QCanvas. I have a
> > > few QCanvasItems that I can drag around, and it's working well. But,
> > > when I resize the window, the canvas doesn't resize. I know the
> > > QCanvasVIew does, because I added a printf line to its sizePolicy(). I
> > > can see that the canvas is not getting resized because I can't drag the
> > > items past where the original window border was.
> >
> > A canvas is the size of your painting; what does that have to do with the
> > view?
> > I don't think your canvas _should_ get smaller (dropping things) when your
> > window is resized.
> > That would also mean you would lose items when you zoom in.
> >
> > I think you should read the Qt docs a little longer :)
>
>
--
Thomas Zander
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic