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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:07:02+00:00 2026-05-23T02:07:02+00:00

How do I increase the size of the check box for the QCheckBox control

  • 0

How do I increase the size of the check box for the QCheckBox control and not the text size?

Thanks.

enter image description here

  • 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-23T02:07:03+00:00Added an answer on May 23, 2026 at 2:07 am

    Jérôme has given you good advice. I will just give further examples.

    QCheckBox::indicator {
         width: 40px;
         height: 40px;
     }
    
      QCheckBox::indicator:checked
      {
        image: url(../Checkbox_checked_normal.png);
      }
      QCheckBox::indicator:unchecked
      {
        image: url(../Checkbox_unchecked_normal.png);
      }
    
      QCheckBox::indicator:checked:hover
      {
        image: url(../Checkbox_checked_hovered.png);
      }
      QCheckBox::indicator:unchecked:hover
      {
        image: url(../Checkbox_unchecked_hovered.png);
      }
      QCheckBox::indicator:checked:pressed
      {
        image: url(../Checkbox_checked_pressed.png);
      }
      QCheckBox::indicator:unchecked:pressed
      {
        image: url(../Checkbox_unchecked_pressed.png);
      }
      QCheckBox::indicator:checked:disabled
      {
        image: url(../Checkbox_checked_disabled.png);
      }
    

    Pay attention to difference between url() usages. In my example I am loading images from disk rather than embedded resource system which I find more appropriate. If you start url with (:/…) it loads from embedded resource system.

    Then load your style sheet as below

    QFile file("your path");
    bool bOpened = file.open(QFile::ReadOnly);
    assert (bOpened == true);
    
    QString styleSheet = QLatin1String(file.readAll());
    
    qApp->setStyleSheet (styleSheet);
    

    I hope this helps.

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

Sidebar

Related Questions

Since the CheckBox control doesn't increase the checkbox when the font size is increased,
Can I check with jQuery whether the User increased the font size and bind
To increase font-size in Xcode is a pain.
how to increase heap size? or how to overcome the problem related to heap
I need to increase the size of a textbox upwards, upon hover. i want
I am trying to increase the size of the image by 20. So I
Is there a command to increase the size of the Vim Command window on
Looking to see if there's an existing method or application to increase display size
Is there a possibility to increase/decrease font size in all UI elements throughout the
For each click I want to increase the font size. $('#fontplus').each(function('click') { var fs

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.