+ Reply to Thread
Results 1 to 3 of 3

Thread: How pass part of the mouse events through a top-level window to the windows below

  1. #1
    Join Date
    Nov 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How pass part of the mouse events through a top-level window to the windows below

    Good evening.
    Half of my top-level window is transparent, except for a few sites. I want to ensure that mouse events occurring on that half had passed through my application and reach of applications under him.
    I found that event->ignore() does not effect a top-level window. Does anyone know anything on which side to approach this problem?
    Thanks in advance for the tip.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,317
    Thanks
    20
    Thanked 377 Times in 371 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How pass part of the mouse events through a top-level window to the windows below

    Half of my top-level window is transparent, except for a few sites.
    Do you mean 100% transparent (i.e by using a mask) or only partly opaque?
    If its 100% transparent, no mouse events for that widget will be cought where it is fully transparent.
    If it is only partly opaque, then you will have probably have to use an event filter.

    I want to ensure that mouse events occurring on that half had passed through my application and reach of applications under him.
    Do you really mean "application" or widgets?
    Or, do you really mean event between applications, or events between widgets (windows) in the same application?
    Recommended off-line reading:
    The Foundations of Qt Development (ISBN: 1-59059-831-8)

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    31,447
    Thanks
    3
    Thanked 4,718 Times in 4,519 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Blog Entries
    4
    Wiki edits
    10

    Default Re: How pass part of the mouse events through a top-level window to the windows below

    I don't think there is a general and easy approach to your problem. You will probably have to dig into the native API. Once events reach an application they are not forwarded to other applications on their own.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


+ Reply to Thread

Similar Threads

  1. How to get mouse click events outside the Qt window?
    By montylee in forum Qt Programming
    Replies: 10
    Last Post: 18th September 2010, 07:25
  2. Catching Mouse Events on Top-Level Window
    By andyp in forum Qt Programming
    Replies: 6
    Last Post: 8th September 2009, 10:26
  3. Replies: 2
    Last Post: 21st June 2009, 06:04
  4. Pass custom events to another process
    By TTGator in forum Qt Programming
    Replies: 9
    Last Post: 14th January 2009, 22:02
  5. Replies: 4
    Last Post: 4th June 2007, 12:07

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