Results 1 to 7 of 7

Thread: Custom ListWidget(QCheckBox + Icon + Text)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Posts
    58
    Thanks
    11
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Custom ListWidget(QCheckBox + Icon + Text)

    Thanks,

    I am able to get checkbox for each listwidgetitem, But I still have one problem.

    How can I increase the checkbox size?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Custom ListWidget(QCheckBox + Icon + Text)

    Not sure about the exact solution. But delegates are what you will need.
    Have a look at QItemDelegate::drawCheckI am not sure how to do with QStyledItemDelegate though.

Similar Threads

  1. QCheckBox with long text label
    By Ferdous in forum Newbie
    Replies: 5
    Last Post: 29th October 2011, 19:05
  2. Text Alignment in a ListWidget
    By Krish_ng in forum Qt Programming
    Replies: 2
    Last Post: 21st July 2007, 02:19
  3. Text under the Icon
    By QiT in forum Newbie
    Replies: 3
    Last Post: 1st April 2007, 17:42
  4. Icon Text Alignment
    By nupul in forum Newbie
    Replies: 3
    Last Post: 1st May 2006, 04:47
  5. Rightjustify text in listwidget
    By Morea in forum Qt Programming
    Replies: 1
    Last Post: 24th March 2006, 10:17

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.