Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7128701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:09:57+00:00 2026-05-28T11:09:57+00:00

I have a Qt program with many buttons, user-interactable widgets, etc. At one stage

  • 0

I have a Qt program with many buttons, user-interactable widgets, etc.
At one stage in the program, I would like all the widgets to temporarily ‘stop working’; stop behaving to mouse clicks and instead pass the event on to one function.

(This is so the User can select a widget to perform meta operations. Part explanation here: Get variable name of Qt Widget (for use in Stylesheet)? )

The User would pick a widget (to do stuff with) by clicking it, and of course clicking a button must not cause the button’s bound function to run.

What is the correct (most abstracted, sensible) method of doing this?
(which doesn’t involve too much new code. ie; not subclassing every widget)
Is there anything in Qt designed for this?

So far, I am able to retrieve a list of all the widgets in the program (by calling

QObject.findChildren(QtGui.QWidget)

so the solution can incorporate this.

My current horrible ideas are;

  • Some how dealing with all the applications events all the time in one
    function and not letting through the events when I need the
    application to be dormant.
  • When I need dormancy, make a new transparent widget which recieves
    mouse clicks and stretch it over the entire window. Take coordinates
    of click and figure out the widget underneath.
  • Somehow create a new ‘shell’ instance of the window.

THANKS!
(Sorry for the terrible write-up; in a slight rush)


python 2.7.2
PyQt4
Windows 7

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T11:09:57+00:00Added an answer on May 28, 2026 at 11:09 am

    You can intercept events send to specific widgets with QObject::installEventFilter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen many programs consisting of structures like the one below typedef struct
I have a program with many windows open. I want all windows to be
I have a java program that has so many buttons with a text on
I have a Java program that runs many small simulations. It runs a genetic
I have a 'server' program that updates many linked lists in shared memory in
Solution for writing a program for keep secret photos. I have many secret photos
I have a program that creates a Windows user account using the NetUserAdd() API
I have a contact manager program that I'd like to design for multiple network
I have a C++ program with many thousands of string literals in the code
I have a data model where a 'Program' has a 1-to-many relationship with 'ToDo's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.