Instead of cluttering the TQTXWidget with hundreds of properties for every possible CSS rule, complex styling is encapsulated in helper classes that are created on demand.


  • Font: A TQTXWidgetFont object for font-family, color, etc..
  • Border: A TQTXWidgetBorder object that manages all border, padding, and margin properties.
  • Background: A TQTXWidgetBackground object for color, images, and repeat styles.
  • Constraints: A TQTXWidgetConstraints object to manage min-width, max-height, etc..