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 519109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:00:24+00:00 2026-05-13T08:00:24+00:00

Do I miss something or there is really no (ready / built-in) way to

  • 0

Do I miss something or there is really no (ready / built-in) way to programmatically change the state of a QCheckBox without emitting the “void stateChanged ( int state )” signal?

The above-mentioned signal is emitted regardless of whether “void setCheckState ( Qt::CheckState state )” was called or the user changed the state via the ui, and there is no “stateEdited” signal like with the QLineEdit.

So, if there is no ready way to differentiate between programmatic and user-induced changes to the state of the QCheckBox, and the only options are subclassing / adding the “stateEdited” signal or fiddling with “void QObject::blockSignals( bool block )”, why does this have to be so, i.e., is it an (some sort of) inconsistency (in Qt)?

  • 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-13T08:00:25+00:00Added an answer on May 13, 2026 at 8:00 am

    If you only need to be informed of user input, listen to

    QAbstractButton::clicked( bool checked );
    

    Otherwise connect to

    QAbstractButton::toggled( bool checked );
    

    or

    QCheckBox::stateChanged( int state);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used IntelliJ Idea on a few projects and I really like the
I have a question because I'm really bad at SQL. I understand basic functions
I still have following problem EXPLAIN EXTENDED SELECT `item`.`id`, `item`.`timestamp`, `item`.`label` FROM item WHERE
I saw some very neat code snippets of programs implemented with .net technologies, such
Having recently read Growing OO systems guided by tests, I am very impressed with
I have a C# Service project where I am connectiong to SQL and retrieving
can somebody explain why is the following trivial code (implementation of Euclid's algorithm to
I've tried some of the editors/IDEs regularly recommended for coding JavaScript (Aptana, WebStorm, ...)
I'm working on an augmented reality app for iPhone that involves a very processor-intensive
Current Query: SELECT DISTINCT HSP.HSP_ACCOUNT_ID, HSP.HSP_ACCOUNT_NAME, HSP.ADM_DATE_TIME, HSP.DISCH_DATE_TIME, HSP.TOT_CHGS, HSP_ACCT_MULT_DRGS.DRG_ID_TYPE_ID, HSP_ACCT_MULT_DRGS.DRG_MPI_CODE FROM C.HSP HSP

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.