[Qt-interest] QGraphicsView ugly distortion yuck

velociraptor Genjix aphidia at hotmail.com
Sat Oct 23 08:45:11 CEST 2010


Hey.



I've made a bug report but searching around I could not find any similar questions so I thought maybe I'm doing something wrong?
  http://bugreports.qt.nokia.com/secure/attachment/17852/distortion.png

Here's the code I'm using to scale the view, http://pastebin.com/bE1ttjKp

That's QGraphicsView::scale(0.9, 0.9)... The distortion is really bad.

(I wrote a little demo app demonstrating this   http://bugreports.qt.nokia.com/secure/attachment/17851/test.zip  )
C++ version:   http://bugreports.qt.nokia.com/secure/attachment/17858/cpp_test.zip  (just run qmake/make)



Now if I screenshot the app and then scale it using QImage (  http://bugreports.qt.nokia.com/secure/attachment/17857/test.zip  ), it's suddenly fine.



My idea is to draw QGraphicsScene onto a custom buffer and then scale 
that using a QImage for display. Unfortunately I can't find any way to 
get the rendered scene.



Can anyone give me any pointers how to do this?
 		 	   		  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dialog.cpp
Type: text/x-c++src
Size: 1598 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101023/8c068842/attachment.bin 


More information about the Qt-interest-old mailing list