QCanvas not showing pixmaps
klumpp at nerim.fr
Fri Jun 21 10:36:12 UTC 2002
If you put an item in the canvas, does it appear, for example a
My first problem with canvas was to see something, and the problem was
that the default size of the canvas seems to be zero. Using the method
"resize" of canvas should resolve your problem. You can put items
outside of the canvas but they won't be shown. Personnaly I use "resize"
each time I move an item outside of the canvas.
You must also show the QCanvasView, update the canvas each time you
modify something, and probably other things. But first try to see a
QCanvasText ! I haven't used a background pixmap but a background color,
but it shouldn't be a problem !
Janito Vaqueiro Ferreira Filho wrote:
> I'm trying to make a MDI app with a canvas. I put the QCanvasView in the
>View and a QCanvas in the Doc. When I try to setBackgoundPixmap(buffer) it
>doesn't work. Please help me. Here's the code used:
>QString sBuf3 = dir + filename;
> buffer.load(sBuf3, "PNG", 0);
>Please help me fix this problem. ThanQ,
>to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
More information about the KDevelop