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. Enable/ Disable QMouse Events based on QRect
Forum Updated to NodeBB v4.3 + New Features

Enable/ Disable QMouse Events based on QRect

Scheduled Pinned Locked Moved General and Desktop
qrectqmouseevent
1 Posts 1 Posters 857 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 23 Mar 2015, 09:10 last edited by
    #1

    Dear All,
    I have one specific requirement. As per that there is one parent window. New child windows will be created on the fly of different sizes., if a window is a popup then it will be displayed on top. The problem is that the popup window size is smaller, so i am able to click the buttons which are placed visible in the back side of the underlying windows.

    I tried setting the modality of the window but it is not working because there is only one parent window and all others are child windows. And i want to block the button press of the sibling window.

    Is it possible to lock the screen using QRect and make it invisible for the mouse click events so that only a particular section of the window remains active. Example: i want to disable all the mouse events outside a particular QRect, and enable all the mouse clicks that are inside that QRect.

    Kindly let me know how it can be achieved.

    Thanks

    1 Reply Last reply
    0

    1/1

    23 Mar 2015, 09:10

    • Login

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