Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80837

Support CSS classes in QTextFormat

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.13.2
    • GUI: Text handling
    • None
    • All

    Description

      Class attributes already work, but there does not seem to be a way to actually set classes.

      QTextFormat should have a Property "CssClass", so you can set the class via

      setProperty(QTextFormat::CssClass, <classname>);
      

      One usecase for css-classes would be Word-Style format templates, that will affect previously formatted text. Or you could use different classes on different platforms.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            jrkleemann Jan Kleemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes