Results 1 to 3 of 3

Thread: Cann't move movable items on custom graphics view

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Cann't move movable items on custom graphics view

    Hi,
    I'm drawing QGraphicsEllipseItem on QGraphicsScene viewed through MyGraphicsView subclassed from QGraphicsView (mouse events are reimplemented to handle zoom in/out by right-click-drag-release).
    The item is supposed to be movable (setFlag(QGraphicsItem::ItemIsMovable,true)) but I cannot move it.

    I'm attaching simple code to illustrate the problem.

    What am I missing?
    Wojtek
    Attached Files Attached Files

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.