How to draw QGraphicsItem in a MFC view
Posted
by user336969
on Stack Overflow
See other posts from Stack Overflow
or by user336969
Published on 2010-05-10T05:08:28Z
Indexed on
2010/05/10
5:18 UTC
Read the original article
Hit count: 378
I'm starting using Qt in my application. My application is MFC based. I want to draw some QGraphicsItems in my currect MFC view, is it possible?
You may say that it could be done by hosting QGraphicsView with QWinWidget in the MFC view, that don't work, however. Because my Canvas (MFC view) supports zooming and rotating while the QGraphicsView itself don't. When I zooming the QGraphicsItem, the QGraphicsView shows scroll bar instead of enlarging itself.
Any suggestion? Thanks!
© Stack Overflow or respective owner