Results 1 to 2 of 2

Thread: QCheckbox label

  1. #1
    Join Date
    Jan 2006
    Posts
    39
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default QCheckbox label

    Hi,

    Is there a way to use html formatting when creating a label for a checkbox? I need to have a subscript character, and I'm not quite sure how to pull that off.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QCheckbox label

    No, checkbox title can only be plain text. But you can place a QLabel alongside the checkbox where you can use rich text.

  3. The following user says thank you to wysota for this useful post:

    drkbkr (19th January 2009)

Similar Threads

  1. tool buttons on top of label
    By McKee in forum Qt Programming
    Replies: 5
    Last Post: 2nd November 2008, 17:07
  2. Replies: 1
    Last Post: 11th September 2008, 10:07
  3. label with image and text
    By mattia in forum Newbie
    Replies: 1
    Last Post: 7th March 2008, 12:28
  4. close window when click on a label
    By sabeesh in forum Qt Programming
    Replies: 3
    Last Post: 29th October 2007, 08:35
  5. Replies: 1
    Last Post: 24th October 2006, 17:40

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.