[RQt-devel] scale of view for some primitive doesn't work

Tengfei Yin yintengfei at gmail.com
Fri Nov 12 00:24:39 CET 2010


Hi

Here comes another question with text, please see the attached  code below,
only rect could be resized,  when I call v$scale()

text, circle doesn't change. it happens to visnab, the circular view, when I
scale the view, every thing resize but the text, it's still in the same
size.

library(qtpaint)
s <- qscene()
test_layer <- qlayer(s,function(layer,painter){
  qdrawRect(painter,30,30,70,70,stroke="blue")
  qdrawCircle(painter,50,50,20,stroke="red")
  qdrawText(painter,"TEST",50,50)
},limits=qrect(0,0,100,100))
v <- qplotView(s)
v$show()

v$scale(1.5,1.5)

Thanks

Tengfei
-- 
Tengfei Yin
MCDB PhD student
1620 Howe Hall, 2274,
Iowa State University
Ames, IA,50011-2274
Homepage: www.tengfei.name
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/qtinterfaces-devel/attachments/20101111/b4638edc/attachment.htm>


More information about the Qtinterfaces-devel mailing list