search

Home  >  Q&A  >  body text

c++ - Qt的图形视图模型框架中,怎么设置QGraphicsItem的移动范围控制在Scene中吗?

大家讲道理大家讲道理2806 days ago565

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-17 14:25:51

    Judge the mouse position in the mouseMoveEvent event and set its position not to exceed the range of QGraphiceScene.

    reply
    0
  • Cancelreply