Results 1 to 3 of 3

Thread: Problem in increasing Chekbox indicator size.

  1. #1
    Join Date
    May 2011
    Posts
    120
    Thanks
    9
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Problem in increasing Chekbox indicator size.

    Hi
    i try to increase checkbox indicator height and width through stylesheet but it does not get. If i use image then it happen but i do not want to use image for indicator.

    code i am using

    Qt Code:
    1. QCheckBox::indicator {
    2. width: 20px;
    3. height: 20px;
    4. }
    To copy to clipboard, switch view to plain text mode 

    Thanks

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Problem in increasing Chekbox indicator size.

    Works fine here:
    Qt Code:
    1. #include <QtGui>
    2. #include <QDebug>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication app(argc, argv);
    7.  
    8. QCheckBox c("Test resized");
    9. c.setStyleSheet("QCheckBox::indicator { width: 32px; height: 32px; } ");
    10. c.show();
    11.  
    12. QCheckBox d("Test Default");
    13. d.show();
    14.  
    15. return app.exec();
    16. }
    To copy to clipboard, switch view to plain text mode 

    Where are you applying the style sheet?

  3. #3
    Join Date
    May 2011
    Posts
    120
    Thanks
    9
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Problem in increasing Chekbox indicator size.

    By doing this checkbox indicator box not increases.

Similar Threads

  1. Increasing contrast of QImage
    By freely in forum Qt Programming
    Replies: 1
    Last Post: 16th November 2011, 17:00
  2. Qtableview column get increasing
    By maarvi in forum Newbie
    Replies: 0
    Last Post: 28th June 2011, 20:21
  3. A reliable way to get the size of a checkbox indicator
    By zoeker in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2008, 22:05
  4. Increasing the width of a row in a TreeView
    By Shambhavi in forum Qt Programming
    Replies: 3
    Last Post: 13th January 2006, 18:13

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.