Results 1 to 1 of 1

Thread: Strange behavior using context menu and RubberBandDrag in QGraphicsview

  1. #1
    Join Date
    May 2013
    Posts
    24
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Strange behavior using context menu and RubberBandDrag in QGraphicsview

    Hi,
    I have attached a modified version of the 40000 chip example. In the Chip class I've implemented the contextMenuEvent(...) method to create a context menu when right clicking a chip. I'm using Qt 5.1.1. When a rubber band drag (selection) is made while the context menu is displayed all the selected chips is moved.

    Steps to reproduce:
    Compile an run the application.
    Right click on a chip, don't select anything in the context menu.
    While the context menu is displayed start a rubber band drag by click and hold on the white area between the chips. Start the drag see how all chips are moved to a random position.

    Have I made a mistake when creating the context menu or is this a bug QT?

    Thanks!
    Attached Files Attached Files

Similar Threads

  1. Replies: 1
    Last Post: 4th November 2011, 11:25
  2. Qt Creator Strange behavior of GDB in Creator 1.3
    By rayjc in forum Qt Tools
    Replies: 1
    Last Post: 11th March 2010, 21:42
  3. Replies: 1
    Last Post: 9th December 2009, 08:44
  4. Strange behavior of checkable menu items..
    By jiapei100 in forum Qt Tools
    Replies: 1
    Last Post: 28th October 2009, 19:58
  5. strange QGraphicsView sizing behavior
    By tpf80 in forum Qt Programming
    Replies: 3
    Last Post: 1st February 2009, 20:04

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.