[Kde-perl] PerlQT Canvas Sample?

Ashley Winters jahqueel at yahoo.com
Sat Mar 13 05:24:02 CET 2004


--- Gerhard Stenzel <gerhard.stenzel at vr-web.de> wrote:
> Hi,
> 
> I recently stumbled across PerlQT and I am very impressed. Currently,
> I am playing around with Canvas and CanvasView and I am  having some
> difficulties. Is there somewhere a small, but working example using
> Canvas, CanvasView and CanvasText? 

Small? How about a one-liner?

perl -MQt -e '$a=Qt::Application(\@ARGV); $c = Qt::Canvas 1000,1000; $t
= Qt::CanvasText "Howdy", $c; show $t; $cv = Qt::CanvasView $c;
setMainWidget $a $cv; show $cv; $a->exec'

Ashley Winters

> 
> Thanks in advance, 
> Gerhard


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com


More information about the Kde-perl mailing list