[PyKDE] Trouble figuring out QCanvas and QCanvasView
Bryan O'Sullivan
bos at serpentine.com
Wed Oct 6 07:28:39 BST 2004
I am unable to figure out how to draw into a QCanvas and have it show up
correctly in a QCanvasView. I've tried looking at both C++ and Python
examples, but the examples are invariably so complex that it's
impossible to figure out what is actually important.
I've attached the simple example I'm trying to make work. It ought to
draw a diagonal black line, but nothing shows up. Clearly, I'm missing
something, but neither the documentation nor the examples suggest what
that might be.
Can anyone help, please?
<b
-------------- next part --------------
A non-text attachment was scrubbed...
Name: can.py
Type: application/x-python
Size: 745 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20041006/5d94b027/can.bin
More information about the PyQt
mailing list