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

style sheet length parsing not working as documented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.4.0 Beta
    • 4.8.4, 4.8.6, 5.0.1, 5.4.0 Alpha
    • Widgets: Style Sheets
    • None

    Description

      The style sheet reference documentation says any length can be specified with units of pt, px, em, or ex.
      https://qt-project.org/doc/qt-5.0/qtwidgets/stylesheet-reference.html#length

      However the code in qcssparser.cpp differs:

      • for font sizes, only pt and px work (setFontSizeFromValue())
      • for other sizes, only px, em and ex work (ValueExtractor::lengthValue())

      Attachments

        For Gerrit Dashboard: QTBUG-31907
        # Subject Branch Project Status CR V

        Activity

          People

            ablasche Alex Blasche
            hmoffatt Hamish Moffatt
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes