2 Jun 2003 08:48
How can I resize a QCanvas when it's QCanvasView is resized?
Jeff McLean <9jrm4 <at> qlink.queensu.ca>
2003-06-02 06:48:21 GMT
2003-06-02 06:48:21 GMT
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.
I would guess that you don't even need to see the code, but it's at the end of
this message anyways.
Thanks a lot.
Jeff
earthview.h:
#ifndef EARTHVIEW_H
#define EARTHVIEW_H
#include <qwidget.h>
#include <qcanvas.h>
#include <qevent.h>
class EarthView : public QCanvasView {
Q_OBJECT
(Continue reading)
On Mon, Jun 02, 2003 at 07:35:16AM -0000, ismail donmez wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
>
RSS Feed