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. Mouse events overwrite question
Forum Updated to NodeBB v4.3 + New Features

Mouse events overwrite question

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 992 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
    Xumepoc
    wrote on last edited by
    #1

    Hi everyone. I have a liitle dilema.
    I need to know when the user have ended the resize event (have released the mouse after a resize) and I use a QSizeGrip for the resize. Now I can overwrite the mouse events of the QSizeGrip and send a signal to the parrent with a simple bool pressed/released. But when I overwrite the mouse events I also lose the ability to resize the window (make sence because I have "steal" the mouse events from the widgets default actions). But my qestion is now this: how I can overwrite the events but also keep the original actions? Is it possible or not?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuldeR
      wrote on last edited by
      #2

      Just call the parent implementation in your own implementation!

      @void DerivedClass::someEvent(QEvent *e)
      {
      //Do your own handling here...
      [.....]

      //Finally call parent implementation
      BaseClass::someEvent(e);
      

      }@

      My OpenSource software at: http://muldersoft.com/

      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

      Go visit the coop: http://youtu.be/Jay...

      1 Reply Last reply
      0
      • X Offline
        X Offline
        Xumepoc
        wrote on last edited by
        #3

        Ah of course!! Thank you very much for the fast reply!!!

        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