Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Enable/ Disable QMouse Events based on QRect

    General and Desktop
    qrect qmouseevent
    1
    1
    641
    Loading More Posts
    • 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
      Sidii last edited by

      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 Reply Quote 0
      • First post
        Last post