Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MouseDoubleClick implementation in QRubberBand subclass

MouseDoubleClick implementation in QRubberBand subclass

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xtraction
    wrote on last edited by
    #1

    Hello,

    I made a custom class inheriting from QRubberBand because I would like to add some functionality. So far what I have now is I click and drag on my view and a the rectangle appears which is the rubberband. When I release the mouse the rectangle stays there on the view. I would like to now be able to double click anywhere inside the rubberband rectangle and have that do something later on.

    But now it doesn't seem to be working. I added some debug lines inside my mouseDoubleClick event to see if I get something in the terminal, but it never goes inside the function. When I double click inside the rectangle I previously drew (which is the rubberband), it just disappears. How could I fix this problem to add functionality when someone double clicks on inside the rubberband boundaries??

    Thanks!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved