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. qApp Installeventfilter and QRegion
Forum Updated to NodeBB v4.3 + New Features

qApp Installeventfilter and QRegion

Scheduled Pinned Locked Moved General and Desktop
qappqregionqpushbuttoninstallfilterev
1 Posts 1 Posters 1.1k 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.
  • S Offline
    S Offline
    Sidii
    wrote on last edited by
    #1

    Hi, All,

    I am using a QRegion to enable / disable mouse press events. Basically, i am installing an eventFilter on qApp and also maintaining a QRegion. So whenever i get mouse events like button pressed, i check whether this is inside my QRegion or not? If yes i will not block the event else i will return false. So no click is detected.

    Problem:
    Now the problem is that whenever the QRegion starts from 0,0 i am able to get the events. If suppose one button is also present inside that QRegion then i am able to press the button and slot is also called for that button.

    But strange thing happens when the QRegion starts from coordinates other than 0,0. Suppose QRegion starts from 100,100 then even if the Pushbutton is inside the QRegion, its slot is never called, only click is detected but event is not going to the Pushbutton.

    Kindly help me.

    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