Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Enable rich text format for QRadioButton - how?
Forum Updated to NodeBB v4.3 + New Features

Enable rich text format for QRadioButton - how?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 322 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • napajejenunedk0N Offline
    napajejenunedk0N Offline
    napajejenunedk0
    wrote on last edited by
    #1

    Hello, all.

    I saw there is a similar topic posted almost an year ago, but the final answer is too generic. I saw a Qt user has struggled with exactly the same issue and has come up with a QStyle-based solution. Translated the latter from Python to C++ but it lacks correct size hint management - the custom QStyle's size for contents function doesn't use QTextDocument for obtaining the correct size hint. My wondering here about the size hint is also whether the custom QStyle's size hint suffices for the calculation of the QRadioButton's one but should look again into the sources. Is there any better and more integrated way of enabling rich text in QRadioButton and not only - QComboBox, QPushButton, etc.?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved