Results 1 to 6 of 6

Thread: QGraphicsItem: How block input without hack ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QGraphicsItem: How block input without hack ?

    Hi,
    I actually use a hack to block input for one QGraphicsItem but I wonder if it's possible without.
    My hack is to set the item selectable and in the itemChange event set selected to false if it changed.
    Basically I only just want to block the mouse button press event because I handle the logic of this item in the scene events.
    Is it possible without this hack and have the item not selectable ? It works but the selection changed event is then called on this item...
    Thank you
    Last edited by Alundra; 1st May 2018 at 11:37.

Similar Threads

  1. Replies: 0
    Last Post: 8th April 2016, 04:34
  2. Undo/redo of multiple action slow, hack possible ?
    By Alundra in forum Qt Programming
    Replies: 6
    Last Post: 21st January 2015, 23:20
  3. Why modeless dialog block keyboard input
    By franco.amato in forum Qt Programming
    Replies: 1
    Last Post: 15th April 2010, 02:08
  4. Replies: 0
    Last Post: 2nd June 2009, 15:57
  5. QGraphicsItem and focus for key input
    By fossill in forum Qt Programming
    Replies: 2
    Last Post: 9th February 2007, 19:13

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.