[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 9:07:20
[Download RAW message or body]
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