Results 1 to 2 of 2

Thread: how to create checkbox with images in a QBoxGroup

  1. #1
    Join Date
    Nov 2012
    Posts
    35
    Thanks
    1
    Thanked 7 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question how to create checkbox with images in a QBoxGroup

    checkBoxImages.jpg

    I am a beginner and I want to learn by creating GUI as I learn,

    I followed zetcode but never encountered how to put images in the checkbox like this
    can anyone show me the way how i can create a checbox group in PyQt4 like shown in the attachment ?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to create checkbox with images in a QBoxGroup

    You call the setIcon() method of the radio button, passing an icon that contains the desired image.

    Cheers,
    _

Similar Threads

  1. Replies: 4
    Last Post: 1st June 2011, 14:54
  2. Replies: 1
    Last Post: 20th January 2011, 10:26
  3. Replies: 1
    Last Post: 16th November 2010, 17:45
  4. Replies: 4
    Last Post: 27th July 2009, 15:45
  5. How to create filmstrip - multiple images in a single file
    By jessiemmichael in forum Qt Programming
    Replies: 1
    Last Post: 13th June 2008, 08:30

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.