Results 1 to 7 of 7

Thread: installEventFilter trouble

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jun 2012
    Posts
    98
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    11

    Default Re: installEventFilter trouble

    They might all be working; I'm getting myriad strange behaviors..


    Here's the problem that I have:
    -I have a widget that's similar to a dialog (in that it can rest over other widgets)
    -It uses a translucent background
    -If I use QDialog properties (via set window flags) the clicks that go to the translucent part of the widget pass through as a user (or I) would expect them to. This is important be cause this *can* rest over other widgets. The problem with QDialog properties is getting this widget to move with the window is a pain.
    -If I used QWidget properties then the object moves with the window but the translucent portion absorbs clicks

    I wanted to be lazy about dealing with moving the widgets around together, so I went the QWidget direction assuming i'd be able to pass my clicks/mousemoves/releases through the first widget via a filter. This has not been successful. I'm looking into the properties of QDialogs and QWidgets to figure out the differences so I can make maybe a hybrid of their properties, but that's the best idea I have at the moment.


    EDIT:
    Maybe using a mask of the widget (since it has a transparent/nonexistent background) would produce an alpha I could use to ignore mouse signals..
    Last edited by tescrin; 10th August 2012 at 17:35.

Similar Threads

  1. Replies: 6
    Last Post: 17th July 2011, 02:06
  2. Replies: 1
    Last Post: 12th January 2011, 06:52
  3. when using InstallEventFilter(),QLineEdit is invisible!
    By Babylon3389 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 27th September 2010, 09:35
  4. problem in simple example for installEventFilter
    By navid in forum Qt Programming
    Replies: 2
    Last Post: 10th December 2009, 19:43
  5. QDirmodel installeventfilter
    By babu198649 in forum Qt Programming
    Replies: 1
    Last Post: 17th November 2007, 10:34

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
  •  
Qt is a trademark of The Qt Company.