[Qt-interest] Can QTextEdit scale in the way what QGraphicsView does?

Sean Harmer sean.harmer at maps-technology.com
Thu May 20 09:58:57 CEST 2010


Hi,

On Thursday 20 May 2010 08:47:06 cheng long wrote:
> QGraphicsView scales its content by adjusting its transform matrix,
> very excellent!
> 
> Is there any way to add this functionality to QTextEdit? How?

You can use QGraphicsProxyWidget to add a QTextEdit to a graphics view to 
enable transformations. See the example in the documentation for more detail:

http://doc.qt.nokia.com/4.7-snapshot/qgraphicsproxywidget.html#details

Cheers,

Sean



More information about the Qt-interest-old mailing list